libindi/libindi-generate-tarball.sh
Christian Dersch 754daf8349 new version
2019-04-28 11:06:58 +02:00

21 lines
542 B
Bash
Executable File

#!/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"
tar -xzf indi-$1.tar.gz
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"