feat(patches): include submodule patch

Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
zontreck 2024-10-06 14:47:22 -07:00
parent 02b7d68983
commit 16cbd9d517

View file

@ -0,0 +1,32 @@
From 10f458e7d376c0b3c873e7a5c3dab24a1143bc9d Mon Sep 17 00:00:00 2001
From: zontreck <tarapiccari@gmail.com>
Date: Sun, 6 Oct 2024 14:42:33 -0700
Subject: [PATCH] fix(configure_script): fix accounting for firestorm being a
submodule instead of root repo
Signed-off-by: zontreck <tarapiccari@gmail.com>
---
scripts/configure_firestorm.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/scripts/configure_firestorm.sh b/scripts/configure_firestorm.sh
index 73ebcfe17d..8dc93f3a97 100755
--- a/scripts/configure_firestorm.sh
+++ b/scripts/configure_firestorm.sh
@@ -433,7 +433,12 @@ if [ \( $WANTS_VERSION -eq $TRUE \) -o \( $WANTS_CONFIG -eq $TRUE \) ] ; then
then
buildVer=`git rev-list --count HEAD`
else
- buildVer=`hg summary | head -1 | cut -d " " -f 2 | cut -d : -f 1 | grep "[0-9]*"`
+ if [ -f .git ]
+ then
+ buildVer=`git rev-list --count HEAD`
+ else
+ buildVer=`hg summary | head -1 | cut -d " " -f 2 | cut -d : -f 1 | grep "[0-9]*"`
+ fi
fi
export revision=${buildVer}
--
2.46.2