mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-03 16:51:27 +00:00
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:
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user