use new cowpatch -I command rather than open-coding same thing in Makefile

This commit is contained in:
Rich Felker 2020-02-17 15:10:44 -05:00
parent 6b7083fa6a
commit a69bac0464
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ musl-git-%:
case "$@" in */*) exit 1 ;; esac
rm -rf $@.tmp
mkdir $@.tmp
( cd $@.tmp && find ../$< -path '*/*/*' -prune -exec sh -c 'ln -s "$$@" .' ':' {} + )
( cd $@.tmp && $(COWPATCH) -I ../$< )
test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp && $(COWPATCH) -p1 )
test ! -f $</config.sub || ( rm -f $@.tmp/config.sub && cp -f $(SOURCES)/config.sub $@.tmp/ && chmod +x $@.tmp/config.sub )
rm -rf $@