buildsys: ensure that all sources are copied over to the build directory
The copy command: # cp -a ${ZFSSRC}/* ${ZFSDIR}/ did not copied over hidden files (those beginning with a dot) and thus a upstream patches which changed also .gitignore did not worked when copied over 1:1, instead of removing the changes to .gitignore it's IMO better to copy the full sources ensuring the whole state of the upstream project source repo is used. With submodules we still do not copy over a potential big .git folder, as we as submodule user have the submodules .git state in our .git/modules folder where the submodule just references to. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
34f271eaf0
commit
7c8450b4b1
8
Makefile
8
Makefile
@ -54,10 +54,10 @@ ${ZFS_DSC}: ${ZFSDIR}
|
|||||||
lintian $@
|
lintian $@
|
||||||
|
|
||||||
${ZFSDIR}: $(ZFSSRC)/README.md $(ZFSSRC) ${ZFSPKG}
|
${ZFSDIR}: $(ZFSSRC)/README.md $(ZFSSRC) ${ZFSPKG}
|
||||||
rm -rf ${ZFSDIR}
|
rm -rf ${ZFSDIR} ${ZFSDIR}.tmp
|
||||||
mkdir ${ZFSDIR}
|
cp -a ${ZFSSRC} ${ZFSDIR}.tmp
|
||||||
cp -a ${ZFSSRC}/* ${ZFSDIR}/
|
cp -a ${ZFSPKG} ${ZFSDIR}.tmp/debian
|
||||||
cp -a ${ZFSPKG} ${ZFSDIR}/debian
|
mv ${ZFSDIR}.tmp ${ZFSDIR}
|
||||||
|
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
|
Loading…
Reference in New Issue
Block a user