allow using older tar without J flag

This commit is contained in:
Nikolai Lifanov 2018-12-02 20:47:28 -05:00
parent c5e2d753f1
commit cbfb543c56
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ musl-git-%:
%: $(SOURCES)/%.tar.xz | $(SOURCES)/config.sub %: $(SOURCES)/%.tar.xz | $(SOURCES)/config.sub
rm -rf $@.tmp rm -rf $@.tmp
mkdir $@.tmp mkdir $@.tmp
( cd $@.tmp && tar Jxvf - ) < $< ( cd $@.tmp && xz -d | tar xvf - ) < $<
test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp/$@ && patch -p1 ) test ! -d patches/$@ || cat patches/$@/* | ( cd $@.tmp/$@ && patch -p1 )
test ! -f $@.tmp/$@/config.sub || cp -f $(SOURCES)/config.sub $@.tmp/$@ test ! -f $@.tmp/$@/config.sub || cp -f $(SOURCES)/config.sub $@.tmp/$@
rm -rf $@ rm -rf $@