Sophie

Sophie

distrib > Fedora > 13 > x86_64 > by-pkgid > 3bcd8569a67e4e5f076720bf84c17a0c > files > 3

signpost-core-1.2.1.1-4.fc13.src.rpm

#!/bin/sh

if [ $# -ne 1 ]
then
	echo Usage : ./$(basename $0) VERSION_TAG
  exit 1
fi

NAME=signpost-core
VERSION=$1

# removing old sources files if exists
rm -rf ${NAME}-${VERSION}

# cheking out 
git clone https://github.com/kaeppler/signpost.git ${NAME}-${VERSION}
cd ${NAME}-${VERSION}
git checkout ${VERSION} 

# creating source tar
tar zcvf ../${NAME}-${VERSION}.tar.gz ${NAME}

cd ..
# delete temporary directories
rm -rf ${NAME}-${VERSION}