Merge pull request #318 from davidgfnet/master

Check if we are in the git repo (or perhaps in a tarball)
This commit is contained in:
Wouter Wijsman
2025-07-06 21:39:43 +02:00
committed by GitHub

View File

@@ -45,8 +45,11 @@ mkdir -p $PSPDEV/share/licenses/PrxEncrypter
cp tools/PrxEncrypter/LICENSE $PSPDEV/share/licenses/PrxEncrypter cp tools/PrxEncrypter/LICENSE $PSPDEV/share/licenses/PrxEncrypter
## Store build information ## Store build information
if [ -d .git ]; then
BUILD_FILE="${PSPDEV}/build.txt" BUILD_FILE="${PSPDEV}/build.txt"
if [[ -f "${BUILD_FILE}" ]]; then if [[ -f "${BUILD_FILE}" ]]; then
sed -i'' '/^pspsdk /d' "${BUILD_FILE}" sed -i'' '/^pspsdk /d' "${BUILD_FILE}"
fi fi
git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}" git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}"
fi