File distribute.sh of Package vsqlite++

#!/bin/sh

ORI_DIR="`dirname $0`"
PROJ_URL="https://github.com/vinzenz/vsqlite--"
DIST_NAME='vsqlite++'
rm -fr "/tmp/$DIST_NAME"

echo "Generating $DIST_NAME..."
git clone "$PROJ_URL" "/tmp/$DIST_NAME"
cd "/tmp/$DIST_NAME"

git clean -d -f
DIST_VERSION=`cat VERSION`
DIST_FULL=$DIST_NAME-$DIST_VERSION

#git archive tags/$DIST_VERSION --format=tar --prefix="$DIST_FULL/" | bzip2 > $DIST_FULL.tar.bz2
#git archive tags/$DIST_VERSION --format=tar --prefix="$DIST_FULL/" | gzip > $DIST_FULL.tar.gz
git archive tags/$DIST_VERSION --format=tar --prefix="$DIST_FULL/" | xz -c > ../$DIST_FULL.tar.xz

echo "Moving new tar.xz to script dir $ORI_DIR"
mv -v /tmp/$DIST_FULL.tar.xz "$ORI_DIR/$DIST_FULL.tar.xz"


#read
#git archive tags/$DIST_VERSION --format=zip --prefix="$DIST_FULL/" > $DIST_FULL.zip
#./autogen.sh
#./configure --prefix=/usr
#make dist-gzip
#make dist-bzip2
#make dist-xz
#make dist-zip

openSUSE Build Service is sponsored by