summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-26 10:00:58 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-26 10:00:58 +0100
commit9d52ba2003467db001d095a9ac037c29b5ef4aab (patch)
tree55675c34a0d9b62ff982fc195fbcbac5918a3cee /scripts
parent0ad391b9e2b4c9693c6ea32f8e10dd8f1c52af40 (diff)
downloadvyos-build-9d52ba2003467db001d095a9ac037c29b5ef4aab.tar.gz
vyos-build-9d52ba2003467db001d095a9ac037c29b5ef4aab.zip
When building parse Git commit ID
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-submodules5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-submodules b/scripts/build-submodules
index a84e0b93..3502a7d4 100755
--- a/scripts/build-submodules
+++ b/scripts/build-submodules
@@ -142,10 +142,11 @@ fi
build_frr() {
PKG=frr
- if ! package_in_buildlist "frr"; then
+ COMMITID=$(cd $PKGDIR/$PKG; git rev-parse --short=10 HEAD)
+ if ! package_in_buildlist $1; then
return 0
fi
- status_start "Building package: $PKG (Git commit/tag: $FRR_VER)"
+ status_start "Building package: $PKG Commit id: $COMMITID"
if [ ! -f "$PKGDIR/$PKG/README.md" ]; then
status_skip "No source for: $PKG"
return 1