Skip to content

Instantly share code, notes, and snippets.

@perlpilot
Created August 20, 2009 05:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save perlpilot/170857 to your computer and use it in GitHub Desktop.
Save perlpilot/170857 to your computer and use it in GitHub Desktop.
diff --git a/build/Makefile.in b/build/Makefile.in
index 3c8c117..cc7d920 100644
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -387,8 +387,10 @@ manifest:
find t/spec -type f >>MANIFEST
sort -u -o MANIFEST MANIFEST
+# Make will use this value unless VERSION was specified on the command line
+VERSION=$(shell date +"%Y-%m")
+
release: manifest
- [ -n "$(VERSION)" ] || ( echo "\nTry 'make release VERSION=yyyymm'\n\n"; exit 1 )
[ -d rakudo-$(VERSION) ] || ln -s . rakudo-$(VERSION)
$(PERL) -ne 'print "rakudo-$(VERSION)/$$_"' MANIFEST | \
tar -zcv -T - -f rakudo-$(VERSION).tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment