Skip to content

Commit

Permalink
Fix build.txt entries for non-git libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
triplef committed Sep 21, 2023
1 parent dabbcbe commit 2c40431
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,18 @@ echo "Android API level: ${ANDROID_API_LEVEL}" >> "${BUILD_TXT}"
for src in "${SRCROOT}"/*; do
cd "${src}"
PROJECT=`basename "${src}"`

project_rev=`git rev-parse HEAD`
echo -e "\n* ${PROJECT}" >> "${BUILD_TXT}"
echo -e "\t- Revision: ${project_rev}" >> "${BUILD_TXT}"

if [ -d ".git" ]; then
project_rev=`git rev-parse HEAD`
echo -e "\t- Revision: ${project_rev}" >> "${BUILD_TXT}"
else
cache_file=($CACHE_ROOT/$PROJECT*)
cache_file=${cache_file[${#cache_file[@]}-1]} # last item
if [ -e "$cache_file" ]; then
echo -e "\t- File: $(basename $cache_file)" >> "${BUILD_TXT}"
fi
fi

has_patches=false

Expand Down

0 comments on commit 2c40431

Please sign in to comment.