Skip to content
This repository was archived by the owner on Feb 27, 2023. It is now read-only.

Commit 9ae942a

Browse files
committed
Update build-data to include version string.
1 parent df25642 commit 9ae942a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

BUILDME.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ cp output/images/rpi-firmware/bootcode.bin ../output
4040

4141
# Create build-date timestamp file containing Git HEAD info for build
4242
rm -f ../output/BUILT* || true
43-
echo "NOOBS Git HEAD @ "`git rev-parse --verify HEAD` > "../output/"BUILT-"$(date +"%Y-%m-%d")"
44-
cat rpi-userland-head >> "../output/"BUILT-"$(date +"%Y-%m-%d")"
45-
cat rpi-firmware-head >> "../output/"BUILT-"$(date +"%Y-%m-%d")"
43+
BUILD_INFO="../output/BUILD-DATA"
44+
echo "Build-date: $(date +"%Y-%m-%d")" > "$BUILD_INFO"
45+
echo "NOOBS Version: "`git describe` >> "$BUILD_INFO"
46+
echo "NOOBS Git HEAD @ "`git rev-parse --verify HEAD` >> "$BUILD_INFO"
47+
cat rpi-userland-head >> "$BUILD_INFO"
48+
cat rpi-firmware-head >> "$BUILD_INFO"
4649

4750
cd ..
4851

output

0 commit comments

Comments
 (0)