about summary refs log tree commit diff
path: root/setup.sh
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-22 17:43:19 +0100
committerPaweł Jastrzębski <pawelj@vulturis.eu>2014-01-22 17:43:19 +0100
commitebe7d910deb304ec0941d47e3e6f30c52b20a5b1 (patch)
treed37167f755c590f9ce11a6a47b56d8a31b27c635 /setup.sh
parentAdded experimental Linux setup (diff)
downloadkcc-ebe7d910deb304ec0941d47e3e6f30c52b20a5b1.tar.gz
kcc-ebe7d910deb304ec0941d47e3e6f30c52b20a5b1.tar.bz2
kcc-ebe7d910deb304ec0941d47e3e6f30c52b20a5b1.zip
Reverting setup changes
Diffstat (limited to 'setup.sh')
-rw-r--r--setup.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100644
index 0000000..0190722
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+# Linux Python package build script
+
+VERSION="4.0"
+
+cp kcc.py __main__.py
+zip kcc.zip __main__.py kcc/*.py
+echo "#!/usr/bin/env python3" > kcc-bin
+cat kcc.zip >> kcc-bin
+chmod +x kcc-bin
+
+cp kcc-c2e.py __main__.py
+zip kcc-c2e.zip __main__.py kcc/*.py
+echo "#!/usr/bin/env python3" > kcc-c2e-bin
+cat kcc-c2e.zip >> kcc-c2e-bin
+chmod +x kcc-c2e-bin
+
+cp kcc-c2p.py __main__.py
+zip kcc-c2p.zip __main__.py kcc/*.py
+echo "#!/usr/bin/env python3" > kcc-c2p-bin
+cat kcc-c2p.zip >> kcc-c2p-bin
+chmod +x kcc-c2p-bin
+
+tar --xform s:^.*/:: --xform s/kcc-bin/kcc/ --xform s/kcc-c2p-bin/kcc-c2p/ --xform s/kcc-c2e-bin/kcc-c2e/ --xform s/comic2ebook/kcc/ -czf KindleComicConverter_linux_$VERSION.tar.gz kcc-bin kcc-c2e-bin kcc-c2p-bin LICENSE.txt icons/comic2ebook.png
+rm __main__.py kcc.zip kcc-c2e.zip kcc-c2p.zip kcc-bin kcc-c2e-bin kcc-c2p-bin
\ No newline at end of file