Compare commits

..

3 Commits
main ... main

Author SHA1 Message Date
Georges Khaznadar
a0fe512e36 renommé maliste.chroot en maliste.list.chroot 2024-03-29 19:26:51 +01:00
Georges Khaznadar
eb1b79a5f6 réparé un faux répertoire 2024-03-29 17:49:32 +01:00
Georges Khaznadar
d30bc5ff56 première publication 2024-03-29 17:47:54 +01:00
2 changed files with 48 additions and 0 deletions

48
Makefile Normal file
View File

@ -0,0 +1,48 @@
TARGET = live-attilax
GIVEBACK_DIR = /srv/ftp/librezo/live-attilax/24.03
default:
echo "possible targets: 'stick', 'rsync_to_freeduc' 'rsync_from_freeduc'"
stick:
sudo live-clone
STICKDEVICE = $(shell lsblk| grep persistence | sed -n 's/.*\(sd.\)[0-9].*/\1/ p')
LIVE_IMAGES = $(shell ls live-image*)
image_16BG: live-image-amd64.stick16G.img.gz
live-image-amd64.stick16G.img.gz:
@if [ -n "$(STICKDEVICE)" ]; then \
echo "writing to live-image-amd64.stick16G.img.gz" ; \
sudo bar -if /dev/$(STICKDEVICE) | gzip -c9 > $@; \
else \
echo "no device was found with a partition named 'persistence'"; \
fi
sum: sha512sums.txt
sha512sums.txt: $(LIVE_IMAGES)
sha512sum live-image* > $@
sign: sha512sums.txt.asc
sha512sums.txt.asc: sha512sums.txt
gpg -sab sha512sums.txt
giveback:
rsync -v --progress \
sha512sums.txt* live-image-* \
freeduc.science:$(GIVEBACK_DIR)
rsync_to_freeduc:
ssh freeduc.science mkdir -p attilax/$(TARGET)
rsync -av --exclude="live-image*" --exclude "*.log" --delete auto config freeduc.science:attilax/$(TARGET)/
rsync_from_freeduc:
rsync -av freeduc.science:attilax/$(TARGET)/build.log .
# get the built files of interest, except the source archives
rsync -av --exclude "*source*" --exclude "*stick*" --progress \
freeduc.science:attilax/$(TARGET)/live-image* .
.PHONY: default stick rsync_to_freeduc rsync_from_freeduc image_16BG sums sign giveback