X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=GNUmakefile.in;h=c135eb08a383c42716e9b826f7555ddc82dd91c0;hp=9dc0c3938a45d3b2a2e7f7e286bd254bf76ec6fb;hb=071b26597664d7d452b4dfb34de3187243738d46;hpb=668491938efce71fde75a85f3b9dc0cedba50f77 diff --git a/GNUmakefile.in b/GNUmakefile.in index 9dc0c393..c135eb08 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,8 +1,6 @@ # Note: GNUmakefile is built automatically from GNUmakefile.in # -# $Id: GNUmakefile.in,v 1.255 2017/01/12 14:19:13 fabiankeil Exp $ -# -# Written by and Copyright (C) 2001-2017 members of the +# Written by and Copyright (C) 2001-2018 members of the # Privoxy team. https://www.privoxy.org/ # # Based on the Internet Junkbuster originally written @@ -44,6 +42,8 @@ CODE_STATUS = @CODE_STATUS@ VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_POINT) SNAPVERSION = $(VERSION)-$(shell date "+%Y%m%d") +SOURCE_DATE_EPOCH = @SOURCE_DATE_EPOCH@ +MTREE_SPEC_FILE = privoxy-$(VERSION)-$(CODE_STATUS).spec ############################################################################# # "make install" directories and variables @@ -143,7 +143,19 @@ PERL = perl DOC_DIR = doc/source DOC_TMP = $(DOC_DIR)/tmp DOC_STATUS = @DOC_STATUS@ -TIDY = tidy -modify -indent -wrap 78 --tidy-mark no +TIDY = tidy -latin1 -q -modify -indent -wrap 120 --tidy-mark no --mute MISSING_ATTRIBUTE --mute TRIM_EMPTY_ELEMENT +# -latin1 +# docbook output is ISO-8859-1 and tidy assumes ASCII +# -q +# suppress nonessential output +# -modify +# modify the original input file +# --mute MISSING_ATTRIBUTE +# don't show lacks "alt" attribute +# or lacks "summary" attribute +# --mute TRIM_EMPTY_ELEMENT +# don't show trimming empty

+# RSYNC = rsync -av -c --chmod=D755,F644 # Program to do LF->CRLF @@ -419,6 +431,27 @@ tarball-dist: dist-check clean clobber $(GZIP_PROG) ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar @$(ECHO) Tarball distribution created. +# Create a mtree spec file that can be used to get a reproducible tar ball +mtree-spec: + $(LN) -s `pwd` ../privoxy-$(VERSION)-$(CODE_STATUS) + $(ECHO) "#mtree 2.0" > $(MTREE_SPEC_FILE) + for i in `find . -type f -a -not \( -path "*/CVS*" -o -name ".*" \ + -o -path "*/debian/*" -o -path "*/actions/*" -o -name "*.php" -o \ + -name "PACKAGERS" -o -path "*.git/*" -o -name "*.spec" \) | env -i sort`; do \ + $(ECHO) "privoxy-$(VERSION)-$(CODE_STATUS)/$$i time=$(SOURCE_DATE_EPOCH) type=file uname=privoxy gname=privoxy mode=0555"; \ + done >> $(MTREE_SPEC_FILE) + $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS) + +# Create a reproducible tarball. +# Requires a tar implementation with mtree support. +reproducible-tarball-dist: dist-check clean clobber mtree-spec + $(LN) -s `pwd` ../privoxy-$(VERSION)-$(CODE_STATUS) + + $(TAR) cvhf privoxy-$(VERSION)-$(CODE_STATUS)-src.tar -C .. @privoxy-$(VERSION)-$(CODE_STATUS)/$(MTREE_SPEC_FILE) + $(GZIP_PROG) -n privoxy-$(VERSION)-$(CODE_STATUS)-src.tar + $(RM) ../privoxy-$(VERSION)-$(CODE_STATUS) $(MTREE_SPEC_FILE) + @$(ECHO) Reproducible tarball distribution created. + # anonymously ncftps the tarball to sourceforge tarball-upload: ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming ../privoxy-$(VERSION)-$(CODE_STATUS)-src.tar.gz @@ -529,10 +562,7 @@ dok-webserver: s/<\/HEAD/\n<\/HEAD/;\ s/\.\d\. //;\ s/__copy/©/;\ - s@(\1@; s@(ChameleonJohn Coupons
\n\ -Sponsor FAQ@' \ + s@(\1@; s@(&2 ; \ $(TIDY) $$html_file || $(TIDY) $$html_file; \ $(PERL) -i'' -e 's@^\s*
\s*$$@@; s@ +$$@@;' -n -p $$html_file; \ done @@ -678,6 +717,8 @@ miscutil.@OBJEXT@: miscutil.c miscutil.h config.h parsers.@OBJEXT@: parsers.c parsers.h config.h $(PROJECT_H_DEPS) errlog.h filters.h jbsockets.h jcc.h loadcfg.h loaders.h miscutil.h ssplit.h ssplit.@OBJEXT@: ssplit.c ssplit.h config.h miscutil.h urlmatch.@OBJEXT@: urlmatch.c urlmatch.h config.h $(PROJECT_H_DEPS) errlog.h miscutil.h ssplit.h +client-tags.@OBJEXT@: client-tags.c client-tags.h config.h $(PROJECT_H_DEPS) errlog.h miscutil.h ssplit.h +fuzz.@OBJEXT@: fuzz.c config.h $(PROJECT_H_DEPS) errlog.h miscutil.h ssplit.h # GNU regex gnu_regex.@OBJEXT@: gnu_regex.c gnu_regex.h config.h @@ -706,7 +747,7 @@ w32taskbar.@OBJEXT@: w32taskbar.c config.h w32log.h w32taskbar.h win32.@OBJEXT@: win32.c config.h jcc.h loadcfg.h pcre/pcre.h pcre/pcreposix.h pcrs.h project.h w32log.h win32.h w32svrapi.h w32.res: w32.rc w32res.h icons/radar-01.ico icons/radar-02.ico icons/radar-03.ico icons/radar-04.ico icons/radar-05.ico icons/radar-06.ico icons/radar-07.ico icons/radar-08.ico icons/idle.ico icons/privoxy.ico config.h - windres -D__MINGW32__=0.2 -O coff -i $< -o $@ + windres -F pe-i386 -D__MINGW32__=0.2 -O coff -i $< -o $@ # AmigaOS @AMIGAOS_ONLY@OBJS += amiga.o