libindi/libindi-generate-tarball.sh

21 lines
542 B
Bash
Raw Normal View History

2017-10-07 17:40:27 +00:00
#!/bin/sh
#
# Starting with release 1.3 INDI ships libindi and 3rdparty stuff (with nonfree
# BLOBs) in one big tar archive. Thus we have to generate a clean one for
# Fedora containing only the free library itself.
NAME="libindi"
ORIG=indi-$1
NEW=$NAME-$1
echo "Generating clean tar for $NAME"
echo "Unpack original tar"
2019-04-28 09:06:58 +00:00
tar -xzf indi-$1.tar.gz
2017-10-07 17:40:27 +00:00
echo "Packing new tar for $NAME"
mv $ORIG/$NAME $NEW
cp -r $ORIG/cmake_modules $NEW/cmake_modules
tar -cpzf $NEW.tar.gz $NEW
echo "Clean up"
rm -rf $ORIG $NEW
echo "Done! Generated $NEW.tar.gz"