Update make-archive.sh
This commit is contained in:
parent
dcf4914ebb
commit
8fc8c268d8
2
make-archive.sh
Normal file → Executable file
2
make-archive.sh
Normal file → Executable file
@ -7,7 +7,7 @@ NAME=$(basename `pwd`)
|
|||||||
VER_REL=$(rpm -q --qf "%{VERSION}\n" --specfile ${NAME}.spec | head -n 1)
|
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=$(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=$(rpm --queryformat "${ARCHIVEFILE}\n" --specfile ${NAME}.spec | head -n 1)
|
||||||
ARCHIVEFILE := $(shell cat archivefilename)
|
ARCHIVEFILE=$(cat archivefilename)
|
||||||
TREEPATH="$NAME-$VER_REL"
|
TREEPATH="$NAME-$VER_REL"
|
||||||
echo -e "\n$NAME $ARCHIVEFILE $TREEPATH"
|
echo -e "\n$NAME $ARCHIVEFILE $TREEPATH"
|
||||||
echo -e "\nMaking archive file ${ARCHIVEFILE} `pwd`" ; \
|
echo -e "\nMaking archive file ${ARCHIVEFILE} `pwd`" ; \
|
||||||
|
Loading…
Reference in New Issue
Block a user