diff options
Diffstat (limited to 'source/ap/sc-im/repack-github-archive.sh')
-rwxr-xr-x | source/ap/sc-im/repack-github-archive.sh | 10 |
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 00000000..08799353 --- /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} |