]> gitweb.morketsmerke.org Git - immudex-testing.git/commitdiff
Dodanie hashu commmitu, jako oznaczenia wersji
authorxf0r3m <jakubstasinski@protonmail.com>
Thu, 17 Aug 2023 11:54:35 +0000 (13:54 +0200)
committerxf0r3m <jakubstasinski@protonmail.com>
Thu, 17 Aug 2023 11:54:35 +0000 (13:54 +0200)
immudex-build

index 27917278c81ba153571c5b67665e0c8287e6951b..7f7731cb4b20d60ddf202195eb7ffc25dfcb53e0 100755 (executable)
@@ -78,6 +78,12 @@ cp -v $(ls -v ${HOME}/build/immudex-testing/${arch}/chroot/boot/vmlinuz-* | tail
 cp -v $(ls -v ${HOME}/build/immudex-testing/${arch}/chroot/boot/initrd.img-* | tail -1) ${HOME}/build/immudex-testing/${arch}/staging/live/initrd >> immudex_build.log 2>&1;
 if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
 
+#Setting version for this image:
+echo "-==Setting version for immudex image: $(date)==-" >> immudex_build.log;
+echo -n "Setting version for this immudex image...";
+git log --pretty=oneline | head -1 | awk '{printf $1}' | tee ${HOME}/build/immudex-testing/${arch}/staging/live/version >> immudex_build.log 2>&1;
+if [ $? -eq 0 ]; then echo -e "[ ${GREEN}OK${ENDCOLOR} ]"; fi
+
 #Getting and copying bootloader files
 echo -n "Copying bootloader files...";
 arch2=$(echo $1 | sed 's/-//g');