Update make-archive.sh

This commit is contained in:
Brian Read 2023-04-10 19:17:59 +01:00
parent dcf4914ebb
commit 8fc8c268d8

2
make-archive.sh Normal file → Executable file
View File

@ -7,7 +7,7 @@ NAME=$(basename `pwd`)
VER_REL=$(rpm -q --qf "%{VERSION}\n" --specfile ${NAME}.spec | head -n 1)
#ARCHIVEFILE=$(cat ${NAME}.spec | grep -e '^[S|s]ource' | sed -r 's/^[S|s]ource[0-9]?:\s?//' | xargs basename)
#ARCHIVEFILE=$(rpm --queryformat "${ARCHIVEFILE}\n" --specfile ${NAME}.spec | head -n 1)
ARCHIVEFILE := $(shell cat archivefilename)
ARCHIVEFILE=$(cat archivefilename)
TREEPATH="$NAME-$VER_REL"
echo -e "\n$NAME $ARCHIVEFILE $TREEPATH"
echo -e "\nMaking archive file ${ARCHIVEFILE} `pwd`" ; \