Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 3d01f7820b4008e932043b6e2450e3e4 > files > 3

signpost-core-1.2.1.2-2.mga3.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}