Pi Firmware: Updated version to <YYYYMMDD>_<Git Short Commit ID>

Change-Id: I07fc67e9c6821aeea6c2c844e3702b327aa047c2
issue_1022
David Banks 2018-07-18 11:20:14 +01:00
rodzic b9a1743904
commit e21a647719
2 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -3,7 +3,16 @@
# exit on error
set -e
NAME=RGBtoHDMI_$(date +"%Y%m%d_%H%M")_$USER
# Check if any uncommitted changes in tracked files
if [ -n "$(git status --untracked-files=no --porcelain)" ]; then
echo "Uncommitted changes; exiting....."
exit
fi
# Lookup the last commit ID
VERSION="$(git rev-parse --short HEAD)"
NAME=RGBtoHDMI_$(date +"%Y%m%d")_$VERSION
DIR=releases/${NAME}
mkdir -p $DIR
@ -12,7 +21,7 @@ for MODEL in rpi
do
# compile debug kernel
./clobber.sh
./configure_${MODEL}.sh
./configure_${MODEL}.sh -DDEBUG=1
make -B -j
mv kernel*.img ${DIR}
done

Wyświetl plik

@ -4,7 +4,7 @@
echo "Running version.sh script"
# Lookup the last commit ID
VERSION="$(git rev-parse --short HEAD)"
VERSION="$(date +"%Y%m%d") $(git rev-parse --short HEAD)"
# Check if any uncommitted changes in tracked files
if [ -n "$(git status --untracked-files=no --porcelain)" ]; then