make initialization of cow source trees robust
shell glob of ../$</* fails to catch filenames beginning with dot, and the easy mitigations for that all produce bad results on non-match. use find to do it robustly.
This commit is contained in:
parent
49f489e5c6
commit
ebf93035c6
2
Makefile
2
Makefile
|
@ -129,7 +129,7 @@ musl-git-%:
|
||||||
%: %.orig
|
%: %.orig
|
||||||
rm -rf $@.tmp
|
rm -rf $@.tmp
|
||||||
mkdir $@.tmp
|
mkdir $@.tmp
|
||||||
( cd $@.tmp && ln -s ../$</* . )
|
( cd $@.tmp && find ../$< -path '*/*/*' -prune -exec sh -c 'ln -s "$$@" .' {} + )
|
||||||
test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp && $(COWPATCH) -p1 )
|
test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp && $(COWPATCH) -p1 )
|
||||||
test ! -f $</config.sub || ( rm -f $@.tmp/config.sub && cp -f $(SOURCES)/config.sub $@.tmp/ )
|
test ! -f $</config.sub || ( rm -f $@.tmp/config.sub && cp -f $(SOURCES)/config.sub $@.tmp/ )
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
Loading…
Reference in New Issue