#!/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}