summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2010-11-11 19:51:15 +0000
committerReuben Thomas <rrt@sc3d.org>2010-11-11 19:51:15 +0000
commit8bf2417ca8646ba35559aa8e6ebe73eefa0d9bd6 (patch)
tree338dbeae1d3b3c4722f06973f37dc01685668e62
parent865f933f4150aa78bbaa0c01cbba66d5db6187b2 (diff)
downloadlrexlib-8bf2417ca8646ba35559aa8e6ebe73eefa0d9bd6.tar.gz
Suffix distribution zip's top-level directory with the version number.
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 721ff03..1136833 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,9 @@
include src/defaults.mak
REGNAMES = gnu pcre posix oniguruma tre
-DISTFILE = lrexlib-$(V).$(MINORV).zip
+PROJECT = lrexlib
+PROJECT_VERSIONED = $(PROJECT)-$(V).$(MINORV)
+DISTFILE = $(PROJECT_VERSIONED).zip
all:
@for i in $(REGNAMES); do \
@@ -26,5 +28,4 @@ clean:
dist: all
git2cl > ChangeLog
- rm -f $(DISTFILE)
- zip $(DISTFILE) -r . -x ".git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties"
+ cd .. && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT) -x "lrexlib/.git/*" "*.gitignore" "*.o" "*.a" "*.so" "*.so.*" "*.zip" "*SciTE.properties" "*scite.properties" && mv $(DISTFILE) $(PROJECT) && cd $(PROJECT) && unzip $(DISTFILE) && mv $(PROJECT) $(PROJECT_VERSIONED) && rm -f $(DISTFILE) && zip $(DISTFILE) -r $(PROJECT_VERSIONED) && rm -rf $(PROJECT_VERSIONED)