diff options
author | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-10-29 06:55:37 -0700 |
---|---|---|
committer | Andrew McDermott <andrew.mcdermott@linaro.org> | 2013-10-29 06:55:37 -0700 |
commit | f8828825da68b84341d9b578440a828c7fc1e3ba (patch) | |
tree | e3424ccc5ea665806fead12b6d4d70b43a2c5549 | |
parent | 999b087daac5b1eeb418f723d8b8c7c7398d130c (diff) |
echo commit-ids for each of the components
Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
-rw-r--r-- | Makefile | 6 | ||||
-rwxr-xr-x | print-commit-ids | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -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 + |