projects
/
super-star-trek.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f3801f7
)
Prevent lossage on version-number mismatch.
author
Eric S. Raymond
<esr@thyrsus.com>
Wed, 7 Feb 2024 23:55:25 +0000
(18:55 -0500)
committer
Eric S. Raymond
<esr@thyrsus.com>
Wed, 7 Feb 2024 23:55:25 +0000
(18:55 -0500)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 5a436fed0be55a52ee6b26fec3503ace069042e2..cf1212608ac6c1b29a3cff552023be87391c32ef 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-41,10
+41,14
@@
clean:
rm -f sst.6 sst.html sst-doc.html
rm -f *.6 MANIFEST index.html
rm -f sst.6 sst.html sst-doc.html
rm -f *.6 MANIFEST index.html
+NEWSVERSION=$(shell sed -n <NEWS '/^[0-9]/s/:.*//p' | head -1)
+
SHIPPER = version=$(VERS) bkgimage=lpt.jpg
release: super-star-trek-$(VERS).tar.gz sst.html sst-doc.html
SHIPPER = version=$(VERS) bkgimage=lpt.jpg
release: super-star-trek-$(VERS).tar.gz sst.html sst-doc.html
+ @[ $(VERS) = $(NEWSVERSION) ] || { echo "Version mismatch!"; exit 1; }
shipper $(SHIPPER) | sh -e -x
refresh: sst.html
shipper $(SHIPPER) | sh -e -x
refresh: sst.html
+ @[ $(VERS) = $(NEWSVERSION) ] || { echo "Version mismatch!"; exit 1; }
shipper -N -w $(SHIPPER) | sh -e -x
shipper -N -w $(SHIPPER) | sh -e -x