1#!/bin/sh 2# 3# $1 = version number 4# $2 = postfix 5# $3 = library target 6# $4 = executable extension (.exe for Windows) 7# 8programs="biblatex2xml bib2xml copac2xml ebi2xml end2xml endx2xml ebi2xml isi2xml med2xml nbib2xml wordbib2xml modsclean ris2xml xml2ads xml2bib xml2biblatex xml2end xml2isi xml2nbib xml2ris xml2wordbib" 9VERSION=$1 10POSTFIX=$2 11LIBTARGET=$3 12EXEEXT=$4 13 14if [ -e update/bibutils_${VERSION} ] ; then 15 rm -r update/bibutils_${VERSION} 16fi 17mkdir -p update/bibutils_${VERSION} 18for p in $programs ; do 19 cp bin/${p}${EXEEXT} update/bibutils_${VERSION}/ 20done 21if [ ${LIBTARGET} != libbibutils.a ]; then 22 cp lib/${LIBTARGET} update/bibutils_${VERSION}/ 23fi 24cd update 25tar cvf - bibutils_${VERSION} | gzip - > bibutils_${VERSION}${POSTFIX}.tgz 26cd .. 27rm -r update/bibutils_${VERSION} 28 29