# This creates a tar.gz and spec-file for a Red Hat 6.x version.
#############################################################################
create-snapshot:
# This creates a tar.gz and spec-file for a Red Hat 6.x version.
#############################################################################
create-snapshot:
[ 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."
[ 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."
TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
-e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
TMPFILE=$$(mktemp -q /tmp/$(PROGRAM).XXXXXX); \
if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
-e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
fi;\
if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
-e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
privoxy-suse.spec > $$TMPFILE ; then \
fi;\
if $(SED) -e 's/^\(Version:\).*/\1 $(RPM_VERSION)/g' \
-e 's/^\(Release:\).*/\1 $(SNAPVERSION)/g' \
privoxy-suse.spec > $$TMPFILE ; then \
@$(MV) -f $(TMPDIR)/$(PROGRAM)-rh-$(VERSION).tar.gz .
@$(MV) -f $(TMPDIR)/$(PROGRAM)-suse-$(VERSION).tar.gz .
@$(RM) -rf $(TMPDIR)
@$(MV) -f $(TMPDIR)/$(PROGRAM)-rh-$(VERSION).tar.gz .
@$(MV) -f $(TMPDIR)/$(PROGRAM)-suse-$(VERSION).tar.gz .
@$(RM) -rf $(TMPDIR)
# 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.
# 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.