Update archivefile creation to reflect return to old structure
This commit is contained in:
parent
0c0b53d70f
commit
7ba14c998d
@ -346,22 +346,8 @@ endif
|
||||
$(ARCHIVEFILE):
|
||||
$(info "${NAME} $(ARCHIVEFILE) $(TREEPATH)")
|
||||
$(info "Making archive file ${ARCHIVEFILE}")
|
||||
echo -e "\nBuilding for SME package" ;\
|
||||
echo -e "\nMaking archive ${ARCHIVEFILE}" ;\
|
||||
TEMPDIR=`mktemp -d` ;\
|
||||
mkdir -p ${TEMPDIR}/${TREEPATH} ;\
|
||||
cp -r root ${TEMPDIR}/${TREEPATH} ;\
|
||||
if [[ -f createlinks ]] ; then cp createlinks ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if [[ -f createlink ]] ; then cp createlink ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if [[ -f COPYING ]] ; then cp COPYING ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if test -f LICENSE ; then cp LICENSE ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if test -f Copying ; then cp Copying ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if test -f Artistic ; then cp Artistic ${TEMPDIR}/${TREEPATH} ; fi ;\
|
||||
if test -f *.c ; then cp *.c ${TEMPDIR}/${TREEPATH}; fi ;\
|
||||
rm -f ${ARCHIVEFILE} ;\
|
||||
tar -czf ${ARCHIVEFILE} -C ${TEMPDIR} ${TREEPATH} ;\
|
||||
ls -l ${ARCHIVEFILE} ;\
|
||||
find ${TEMPDIR} -delete;
|
||||
tar -czf ${ARCHIVEFILE} ${TREEPATH} ;\
|
||||
ls -l ${ARCHIVEFILE} ;
|
||||
|
||||
test-srpm: srpm
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user