X-Git-Url: http://www.privoxy.org/gitweb/?a=blobdiff_plain;f=GNUmakefile.in;h=018d73f17878a3776ac5104473515469d6285cfa;hb=f1e4b5f5c6482bcd6fcb8e2223a4d51fdd8a4f9a;hp=7a4eda5854fee6a58bc64da36bdca023b91796db;hpb=5c8cde38f584ea30b3dc8937dc844c6985889dc5;p=privoxy.git diff --git a/GNUmakefile.in b/GNUmakefile.in index 7a4eda58..018d73f1 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -1,6 +1,6 @@ # Note: Makefile is built automatically from Makefile.in # -# $Id: GNUmakefile.in,v 1.104.2.8 2002/07/12 10:04:32 kick_ Exp $ +# $Id: GNUmakefile.in,v 1.104.2.10 2002/07/27 22:56:53 kick_ Exp $ # # Written by and Copyright (C) 2001 the SourceForge # Privoxy team. http://www.privoxy.org/ @@ -43,8 +43,8 @@ VERSION_POINT = @VERSION_POINT@ CODE_STATUS = @CODE_STATUS@ VERSION = $(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_POINT) RPM_VERSION = $(VERSION) -RPM_PACKAGEV = $(RPM_VERSION) -SNAPVERSION = $(RPM_PACKAGEV)-$(shell date "+%Y%m%d") +RPM_PACKAGEV = "" +SNAPVERSION = $(RPM_VERSION)-$(shell date "+%Y%m%d") ############################################################################# @@ -287,12 +287,11 @@ dist-check: # This creates a tar.gz and spec-file for a Red Hat 6.x version. ############################################################################# create-snapshot: - @tag=`cvs status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \ + @tag=`cvs -d $(CVSROOT) status Makefile | awk ' /Sticky Tag/ { print $$3 } '` 2> /dev/null; \ [ x"$$tag" = x"(none)" ] && tag=HEAD; \ echo "*** Creating package from $$tag!"; \ cd $(TMPDIR) ; cvs -Q -d $(CVSROOT) export -r $$tag current || echo "Um... export aborted." - @$(MV) $(TMPDIR)/current $(TMPDIR)/$(PROGRAM)-$(VERSION); \ - cd $(TMPDIR)/$(PROGRAM)-$(VERSION); \ + @cd $(TMPDIR)/current; \ TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \ if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \ -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \ @@ -300,24 +299,22 @@ create-snapshot: $(MV) -f $$TMPFILE privoxy-rh.spec; \ else \ $(ECHO) "Could not set version info in specfile."; \ - exit 1;\ + exit 1;\ fi;\ if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \ -e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \ privoxy-suse.spec > $$TMPFILE ; then \ - $(MV) -f $$TMPFILE privoxy-suse.spec; \ + $(MV) -f $$TMPFILE privoxy-suse.spec; \ else \ $(ECHO) "Could not set version info in specfile."; \ - exit 1;\ + exit 1;\ fi; \ - $(RM) $(TMPFILE) - @cd $(TMPDIR); \ + $(RM) $(TMPFILE); \ + cd $(TMPDIR)/current; \ $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude \ - "privoxy-suse.spec" -czf $(PROGRAM)-rh-$(VERSION).tar.gz \ - $(PROGRAM)-$(VERSION); \ + "privoxy-suse.spec" -czf $(TMPDIR)/$(PROGRAM)-rh-$(VERSION).tar.gz .; \ $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude \ - "privoxy-rh.spec" -czf $(PROGRAM)-suse-$(VERSION).tar.gz \ - $(PROGRAM)-$(VERSION); + "privoxy-rh.spec" -czf $(TMPDIR)/$(PROGRAM)-suse-$(VERSION).tar.gz . @$(MV) -f $(TMPDIR)/$(PROGRAM)-rh-$(VERSION).tar.gz . @$(MV) -f $(TMPDIR)/$(PROGRAM)-suse-$(VERSION).tar.gz . @$(RM) -rf $(TMPDIR) @@ -393,11 +390,19 @@ conectiva-upload: check-release # redhat distribution alpha and x86 ############################################################################# redhat-dist: rpm-stuff - + echo $(CONFIG_FILES) $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) . $(RPMBUILD) --clean -ta $(TAR_ARCH) if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi +# For testing build issues only! Use redhat-dist for official releases. +redhat-test: + echo $(CONFIG_FILES) + $(TAR) --exclude ".cvsignore" --exclude "CVS" --exclude "privoxy-suse.spec" --exclude "privoxy-cl.spec" --exclude "PACKAGERS" -czf $(TAR_ARCH) . + $(RPMBUILD) --clean -tb $(TAR_ARCH) + if [ -f $(TAR_ARCH) ]; then $(RM) $(TAR_ARCH); fi + @echo "WARNING: This target is only for testing. Use redhat-dist for releases!!!" + # anonymously ncftps the rpms to sourceforge redhat-upload: check-release ncftpput -u anonymous -p ijbswa-developers@lists.sourceforge.net upload.sourceforge.net /incoming $(RPM_BASE)/SRPMS/privoxy-$(RPM_VERSION)-$(RPM_PACKAGEV).src.rpm @@ -974,6 +979,13 @@ coffee: ## end: # $Log: GNUmakefile.in,v $ +# Revision 1.104.2.10 2002/07/27 22:56:53 kick_ +# cleanups of the redhat-srpm target +# +# Revision 1.104.2.9 2002/07/26 15:17:02 oes +# - Added generation of default.action from defaul.action.master +# - Deleted obsolete re_filterfile.txt generation +# # Revision 1.104.2.8 2002/07/12 10:04:32 kick_ # added helper targets to the makefile. They shouldn't break anything, but # make my life a lot easier.