Update archivefile creation to reflect return to old structure
This commit is contained in:
parent
0c0b53d70f
commit
7ba14c998d
@ -346,22 +346,8 @@ endif
|
|||||||
$(ARCHIVEFILE):
|
$(ARCHIVEFILE):
|
||||||
$(info "${NAME} $(ARCHIVEFILE) $(TREEPATH)")
|
$(info "${NAME} $(ARCHIVEFILE) $(TREEPATH)")
|
||||||
$(info "Making archive file ${ARCHIVEFILE}")
|
$(info "Making archive file ${ARCHIVEFILE}")
|
||||||
echo -e "\nBuilding for SME package" ;\
|
tar -czf ${ARCHIVEFILE} ${TREEPATH} ;\
|
||||||
echo -e "\nMaking archive ${ARCHIVEFILE}" ;\
|
ls -l ${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;
|
|
||||||
|
|
||||||
test-srpm: srpm
|
test-srpm: srpm
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user