aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.private8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.private b/Makefile.private
index e1812566..92174658 100644
--- a/Makefile.private
+++ b/Makefile.private
@@ -39,9 +39,10 @@ release:
zip -9r ../syslinux-$(VERSION).zip *
-PREREL := syslinux-$(VERSION)-$(DATE)
PRERELDIR := release/syslinux-$(VERSION)-prerel
-
+PRERELNO := `cat $(PRERELDIR)/.prerel 2>/dev/null || echo 1`
+PREREL := syslinux-$(VERSION)-$(PRERELNO)
+
prerel:
mkdir -p $(PRERELDIR)
-rm -rf $(PRERELDIR)/$(PREREL)
@@ -49,7 +50,7 @@ prerel:
mkdir -p $(PRERELDIR)/$(PREREL)
cp $(SOURCES) $(DOCS) $(OTHER) $(PRERELDIR)/$(PREREL)
make -C $(PRERELDIR)/$(PREREL) spotless
- make -C $(PRERELDIR)/$(PREREL) HEXDATE="$(DATE)"
+ make -C $(PRERELDIR)/$(PREREL) all DATE=`printf 'PR %s-%d ' $(VERSION) $(PRERELNO) | dd bs=10 count=1 2>/dev/null`
make -C $(PRERELDIR)/$(PREREL) dist
cd $(PRERELDIR)/$(PREREL) && \
rm -f $(PRIVATE)
@@ -59,3 +60,4 @@ prerel:
uuencode $(PREREL).tar.gz $(PREREL).tar.gz > $(PREREL).uu
cd $(PRERELDIR)/$(PREREL) && \
zip -9r ../$(PREREL).zip *
+ expr $(PRERELNO) + 1 > $(PRERELDIR)/.prerel