Commit 3af2c793 authored by Francesco Bonanno's avatar Francesco Bonanno

Fixed auto build number attribute in Makefile

parent 0cfb5716
......@@ -9,8 +9,9 @@
# You need live-build package installed and superuser privileges.
#BUILD_NUMBER=$$(date +'%Y%m%d')
BUILD_NUMBER=20181110
BUILD_NUMBER_DATE=$$(date +'%Y%m%d')
BUILD_NUMBER_FILE=build_num.txt
BUILD_NUMBER=$$(cat $(BUILD_NUMBER_FILE))
BASEIMG=parrotsec-standard-armhf-rpi
IMAGEPREFIX=$(BASEIMG)-$(BUILD_NUMBER)
LOGFILE=$(IMAGEPREFIX).build-log.txt
......@@ -31,6 +32,7 @@ SHA1SUMTARXZFILE=$(TARXZFILE).sha1sum.txt
BLOCKDEVICE=
all:
echo $(BUILD_NUMBER_DATE) > $(BUILD_NUMBER_FILE)
set -e; taskset 0x1 sudo lb build 2>&1 | tee $(LOGFILE)
if [ -f live-image-armhf.tar.tar.gz ]; then \
tar -jcf $(CONFIGFILE) auto/ config/ configure; \
......@@ -70,6 +72,7 @@ clean:
rm -f $(BASEIMG)-*
rm -rf config
rm -rf .build
rm -f buildnum.txt
if [ -d parrotsec-rpi ]; then \
sudo umount -l parrotsec-rpi/*; true; \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment