X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=GNUmakefile.in;h=c9ead67c34c5dafd894bdf8420f02a69daffef08;hp=b606a9e634dfbdecf3e61d931f1ec9b3e2da19be;hb=23b99e99ad07aefdc868f16c970c22f73b7f50cc;hpb=e0c0a38bec6fdc429bc50541d45d507bc0528016 diff --git a/GNUmakefile.in b/GNUmakefile.in index b606a9e6..c9ead67c 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,6 +1,6 @@ # Note: GNUmakefile is built automatically from GNUmakefile.in # -# $Id: GNUmakefile.in,v 1.256 2017/02/20 13:46:25 fabiankeil Exp $ +# $Id: GNUmakefile.in,v 1.262 2017/05/25 11:15:34 fabiankeil Exp $ # # Written by and Copyright (C) 2001-2017 members of the # Privoxy team. https://www.privoxy.org/ @@ -44,6 +44,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 @@ -419,6 +421,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 +552,7 @@ dok-webserver: s/<\/HEAD/\n<\/HEAD/;\ s/\.\d\. //;\ s/__copy/©/;\ - s@(\1@; s@(ChameleonJohn Coupons
\n\ -Become a sponsor@' \ + s@(\1@; s@(