2013-11-04 18:08:47 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# Repacks the xscreensaver tarball to remove the unneeded OSX sources.
|
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
VERSION=${VERSION:-$(echo xscreensaver-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
|
2013-11-04 18:08:47 +01:00
|
|
|
|
2018-05-28 21:12:29 +02:00
|
|
|
tar xf xscreensaver-${VERSION}.tar.?z || exit 1
|
|
|
|
mv xscreensaver-${VERSION}.tar.?z xscreensaver-${VERSION}.tarball.orig
|
2013-11-04 18:08:47 +01:00
|
|
|
rm -r xscreensaver-${VERSION}/OSX/*
|
2016-06-30 22:26:57 +02:00
|
|
|
rm -r xscreensaver-${VERSION}/android/*
|
2013-11-04 18:08:47 +01:00
|
|
|
tar cf xscreensaver-${VERSION}.tar xscreensaver-${VERSION}
|
|
|
|
rm -r xscreensaver-${VERSION}
|
2018-05-28 21:12:29 +02:00
|
|
|
plzip -9 xscreensaver-${VERSION}.tar
|
|
|
|
touch -r xscreensaver-${VERSION}.tarball.orig xscreensaver-${VERSION}.tar.lz
|
|
|
|
rm xscreensaver-${VERSION}.tarball.orig
|