mirror of
https://github.com/janet-lang/janet
synced 2024-11-28 02:59:54 +00:00
Defuse tarbomb: wrap tar file contents in directory
https://en.wikipedia.org/wiki/Tar_(computing)#Tarbomb http://www.linfo.org/tarbomb.html
This commit is contained in:
parent
39f1d81fd4
commit
8753d2dcb8
5
Makefile
5
Makefile
@ -255,7 +255,10 @@ build/janet-%.tar.gz: $(JANET_TARGET) \
|
|||||||
src/include/janet.h src/conf/janetconf.h \
|
src/include/janet.h src/conf/janetconf.h \
|
||||||
jpm.1 janet.1 LICENSE CONTRIBUTING.md $(JANET_LIBRARY) $(JANET_STATIC_LIBRARY) \
|
jpm.1 janet.1 LICENSE CONTRIBUTING.md $(JANET_LIBRARY) $(JANET_STATIC_LIBRARY) \
|
||||||
build/doc.html README.md build/janet.c
|
build/doc.html README.md build/janet.c
|
||||||
tar -czvf $@ $^
|
$(eval JANET_DIST_DIR = "janet-$(shell basename $*)")
|
||||||
|
mkdir -p build/$(JANET_DIST_DIR)
|
||||||
|
cp -r $^ build/$(JANET_DIST_DIR)/
|
||||||
|
cd build && tar -czvf ../$@ $(JANET_DIST_DIR)
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
##### Documentation #####
|
##### Documentation #####
|
||||||
|
Loading…
Reference in New Issue
Block a user