mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
Check if we are in the git repo (or perhaps in a tarball)
This commit is contained in:
@@ -45,8 +45,11 @@ mkdir -p $PSPDEV/share/licenses/PrxEncrypter
|
||||
cp tools/PrxEncrypter/LICENSE $PSPDEV/share/licenses/PrxEncrypter
|
||||
|
||||
## Store build information
|
||||
BUILD_FILE="${PSPDEV}/build.txt"
|
||||
if [[ -f "${BUILD_FILE}" ]]; then
|
||||
if [ -d .git ]; then
|
||||
BUILD_FILE="${PSPDEV}/build.txt"
|
||||
if [[ -f "${BUILD_FILE}" ]]; then
|
||||
sed -i'' '/^pspsdk /d' "${BUILD_FILE}"
|
||||
fi
|
||||
git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}"
|
||||
fi
|
||||
git log -1 --format="pspsdk %H %cs %s" >> "${BUILD_FILE}"
|
||||
|
||||
|
Reference in New Issue
Block a user