kopia lustrzana https://github.com/hoglet67/RGBtoHDMI
Pi Firmware: Updated version to <YYYYMMDD>_<Git Short Commit ID>
Change-Id: I07fc67e9c6821aeea6c2c844e3702b327aa047c2issue_1022
rodzic
b9a1743904
commit
e21a647719
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue