Archive-Unzip-Burst

 view release on metacpan or  search on metacpan

unzip-6.0/human68k/Makefile  view on Meta::CPAN

human68k/g_offs.mac:	human68k/gbloffs.x
	human68k/mkgoff.x >! $@

human68k/g_offs_.mac:	human68k/gbloffs_.x			# unzipsfx
	human68k/mkgoff_.x >! $@

human68k/g_offsf.mac:	human68k/gbloffsf.x			# funzip
	human68k/mkgofff.x >! $@

human68k/gbloffs.x:	gbloffs.c $(UNZIP_H) crypt.h
	$(CC) $(CFLAGS) gbloffs.c -o $@

human68k/gbloffs_.x:	gbloffs.c $(UNZIP_H) crypt.h		# unzipsfx
	$(CC) $(CFLAGS) gbloffs.c -o $@ $(XC)

human68k/gbloffsf.x:	gbloffs.c $(UNZIP_H) crypt.h		# funzip
	$(CC) $(CFLAGS) gbloffs.c -o $@ $(FC)

# the test zipfile
TESTZIP = testmake.zip

# test some basic features of the build
test:	check

check:	unzips
	@if test ! -f $(TESTZIP); then \
	    echo "#####  ERROR:  can't find test file $(TESTZIP)"; exit 1; fi
#
	@echo "#####  testing extraction"
	@./unzip -bo $(TESTZIP) testmake.zipinfo
	@if test ! -f testmake.zipinfo ; then \
	    echo "#####  ERROR:  file extraction from $(TESTZIP) failed"; \
	    exit 1; fi
#
	@echo '#####  testing zipinfo (unzip -Z)'
	@./unzip -Z $(TESTZIP) > testmake.unzip-Z
	@if diff testmake.unzip-Z testmake.zipinfo; then echo "OK."; else \
	    echo "#####  WARNING:  zipinfo output doesn't match stored version"; \
	    echo '#####     (If the only difference is the file times, compare your'; \
	    echo '#####      timezone with the Central European timezone, which is one'; \
	    echo '#####      hour east of Greenwich but effectively 2 hours east'; \
	    echo '#####      during summer Daylight Savings Time.  The upper two'; \
	    echo '#####      lines should correspond to your local time when the'; \
	    echo '#####      files were created, on 19 November 1998 at 10:46pm CET.'; \
	    echo '#####      If the times are consistent, please ignore this warning.)'; \
	    fi
	@rm -f testmake.unzip-Z testmake.zipinfo
#
	@echo '#####  testing unzip -d exdir option'
	@./unzip -bo $(TESTZIP) -d testun notes
	@cat testun/notes
#
	@echo '#####  testing unzip -o and funzip (ignore funzip warning)'
	@./unzip -boq $(TESTZIP) notes -d testun
	@./funzip < $(TESTZIP) > testun/notes2
	@if diff testun/notes testun/notes2; then true; else \
	    echo '#####  ERROR:  funzip output disagrees with unzip'; fi
#
	@echo '#####  testing unzipsfx (self-extractor)'
	@cat unzipsfx.x $(TESTZIP) > testsfx.x
	@chmod 0700 testsfx.x
	@./testsfx -bo notes
	@if diff notes testun/notes; then true; else \
	    echo '#####  ERROR:  unzipsfx file disagrees with unzip'; fi
	@rm -f testsfx.x notes testun/notes testun/notes2
	@rmdir testun
#
	@echo '#####  testing complete.'

# EOF



( run in 4.575 seconds using v1.01-cache-2.11-cpan-140bd7fdf52 )