X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=update-archive%2Fupdate-archive.sh;h=5705cddc1859d85dbd18882db0dbab85b6f0be37;hb=458ae70bd6296a8e385c4c2cd9b79e8aef1e9d43;hp=1cec276ec6d663c579790284cac71f7051f6454c;hpb=45708c48adcb3e2b9b9f74732b166d05b440b6b8;p=git-tools-moved-to-github.git diff --git a/update-archive/update-archive.sh b/update-archive/update-archive.sh index 1cec276..5705cdd 100755 --- a/update-archive/update-archive.sh +++ b/update-archive/update-archive.sh @@ -1,6 +1,13 @@ #!/bin/sh -if test ! -f apt-ftparchive.conf.in; then - echo "$0: apt-ftparchive.conf.in must be located in current directory" +D0=`dirname $0` +confdir=`cd $D0; pwd` + +if test ! -f ${confdir}/apt-ftparchive.conf.in; then + echo "$0: ${condir}/apt-ftparchive.conf.in not found" + exit 1 +fi +if test ! -f ${confdir}/apt-release.conf.in; then + echo "$0: ${condir}/apt-release.conf.in not found" exit 1 fi @@ -11,7 +18,6 @@ fi # gpg -a -d -o Release.gpg Release -confdir=`pwd` architectures="i386 amd64"