summaryrefslogtreecommitdiff
path: root/source/xap/xscreensaver/dump.android.osx.sources.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/xscreensaver/dump.android.osx.sources.sh')
-rwxr-xr-xsource/xap/xscreensaver/dump.android.osx.sources.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/xap/xscreensaver/dump.android.osx.sources.sh b/source/xap/xscreensaver/dump.android.osx.sources.sh
index 3993f510..4626090f 100755
--- a/source/xap/xscreensaver/dump.android.osx.sources.sh
+++ b/source/xap/xscreensaver/dump.android.osx.sources.sh
@@ -1,14 +1,14 @@
#!/bin/sh
# Repacks the xscreensaver tarball to remove the unneeded OSX sources.
-VERSION=${VERSION:-$(echo xscreensaver-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
+VERSION=${VERSION:-$(echo xscreensaver-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-tar xf xscreensaver-${VERSION}.tar.xz || exit 1
-mv xscreensaver-${VERSION}.tar.xz xscreensaver-${VERSION}.tar.xz.orig
+tar xf xscreensaver-${VERSION}.tar.?z || exit 1
+mv xscreensaver-${VERSION}.tar.?z xscreensaver-${VERSION}.tarball.orig
rm -r xscreensaver-${VERSION}/OSX/*
rm -r xscreensaver-${VERSION}/android/*
tar cf xscreensaver-${VERSION}.tar xscreensaver-${VERSION}
rm -r xscreensaver-${VERSION}
-xz -9 xscreensaver-${VERSION}.tar
-touch -r xscreensaver-${VERSION}.tar.xz.orig xscreensaver-${VERSION}.tar.xz
-rm xscreensaver-${VERSION}.tar.xz.orig
+plzip -9 xscreensaver-${VERSION}.tar
+touch -r xscreensaver-${VERSION}.tarball.orig xscreensaver-${VERSION}.tar.lz
+rm xscreensaver-${VERSION}.tarball.orig