summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common.mk3
-rwxr-xr-xtool/make-snapshot3
2 files changed, 5 insertions, 1 deletions
diff --git a/common.mk b/common.mk
index 5f62719..827735a 100644
--- a/common.mk
+++ b/common.mk
@@ -1085,9 +1085,10 @@ lldb: miniruby$(EXEEXT) PHONY
lldb-ruby: $(PROGRAM) PHONY
lldb $(enable_shared:yes=-o 'target modules add ${LIBRUBY_SO}') -o '$(LLDB_INIT)' $(PROGRAM) -- $(TESTRUN_SCRIPT)
+DISTPKGS = gzip,zip,all
dist:
$(BASERUBY) $(srcdir)/tool/make-snapshot \
- -srcdir=$(srcdir) \
+ -srcdir=$(srcdir) -packages=$(DISTPKGS) \
-unicode-version=$(UNICODE_VERSION) \
tmp $(RELNAME)
diff --git a/tool/make-snapshot b/tool/make-snapshot
index d628004..4684dab 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -93,6 +93,9 @@ class Dir
end
$packages &&= $packages.split(/[, ]+/).tap {|pkg|
+ if all = pkg.index("all")
+ pkg[all, 1] = PACKAGES.keys - pkg
+ end
pkg -= PACKAGES.keys
pkg.empty? or abort "#{File.basename $0}: unknown packages - #{pkg.join(", ")}"
}