summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-10-29 06:55:37 -0700
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-10-29 06:55:37 -0700
commitf8828825da68b84341d9b578440a828c7fc1e3ba (patch)
treee3424ccc5ea665806fead12b6d4d70b43a2c5549
parent999b087daac5b1eeb418f723d8b8c7c7398d130c (diff)
echo commit-ids for each of the components
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rw-r--r--Makefile6
-rwxr-xr-xprint-commit-ids6
2 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e9d372..0536ce3 100644
--- a/Makefile
+++ b/Makefile
@@ -41,12 +41,16 @@ JDK8_TIP_TARBALL := $(SNAPSHOT_NAME).tar.bz2
ALL_DOWNLOADS := $(JDK8_CORE_TARBALL) $(JDK8_COMPONENT_TARBALLS)
-.PHONY: all
+.PHONY: all print-commit-ids
all: $(JDK8_TIP_TARBALL)
+print-commit-ids:
+ ./print-commit-ids $(JDK8_COMPONENT_TARBALLS)
+
$(JDK8_TIP_TARBALL): $(ALL_DOWNLOADS)
$(RM) -r $@ $(JDK8_CORE)
+ ./print-commit-ids $(JDK8_COMPONENT_TARBALLS)
tar -zxf $(JDK8_CORE_TARBALL) --transform='s/^\([^-]\+\)-[0-9a-f]\{12\}/\1/'
@(set -e; for i in $(JDK8_COMPONENT_TARBALLS); \
do \
diff --git a/print-commit-ids b/print-commit-ids
new file mode 100755
index 0000000..c53cfed
--- /dev/null
+++ b/print-commit-ids
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+for i in "$@"; do
+ tar atf $i | head -1 | sed 's!/.*!!'
+done
+