summaryrefslogtreecommitdiffstats
path: root/source/ap/sc-im/repack-github-archive.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/ap/sc-im/repack-github-archive.sh')
-rwxr-xr-xsource/ap/sc-im/repack-github-archive.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/ap/sc-im/repack-github-archive.sh b/source/ap/sc-im/repack-github-archive.sh
new file mode 100755
index 000000000..08799353d
--- /dev/null
+++ b/source/ap/sc-im/repack-github-archive.sh
@@ -0,0 +1,10 @@
+ARCHIVE_ORIG=$(/bin/ls v*.tar.gz)
+NEW_BASENAME="sc-im-$(basename $ARCHIVE_ORIG .tar.gz | cut -b2-)"
+rm -rf ${NEW_BASENAME}*
+tar xf $ARCHIVE_ORIG
+# Dump this stuff:
+rm -rf $NEW_BASENAME/{examples,screenshots}
+tar cf ${NEW_BASENAME}.tar ${NEW_BASENAME}
+plzip -9 ${NEW_BASENAME}.tar
+rm -f ${ARCHIVE_ORIG}
+rm -rf ${NEW_BASENAME}