mirror of
https://src.koozali.org/smeserver/common.git
synced 2024-12-22 21:07:00 +01:00
Add -r to cp for the addional directory so that it copies unerlying dirs as well as files.
This commit is contained in:
parent
bb50cfb093
commit
31418d3196
@ -353,7 +353,7 @@ $(ARCHIVEFILE):
|
||||
mkdir -p "${TEMPDIR}/${TREEPATH}" ;\
|
||||
if [ -d ${CODEDIR} ] ; then cp -R "${CODEDIR}" "${TEMPDIR}/${TREEPATH}" ; fi ; \
|
||||
if [ -e createlinks ] ; then cp createlinks "${TEMPDIR}/${TREEPATH}/." ; fi ; \
|
||||
if [ -d additional ] ; then cp additional/* "${TEMPDIR}/${TREEPATH}/." ; fi ; \
|
||||
if [ -d additional ] ; then cp -r additional/* "${TEMPDIR}/${TREEPATH}/." ; fi ; \
|
||||
rm -f ${ARCHIVEFILE} ;\
|
||||
tar -caf "${ARCHIVEFILE}" -C "${TEMPDIR}" "${TREEPATH}" ;\
|
||||
ls -l ${ARCHIVEFILE} ;\
|
||||
|
Loading…
Reference in New Issue
Block a user