forked from attilax/clevive
Compare commits
No commits in common. "eb1b79a5f692b309294912b798a131a127b3abbf" and "439d3059b359fb09de0653e1737f11cbbb1f87ee" have entirely different histories.
eb1b79a5f6
...
439d3059b3
48
Makefile
48
Makefile
@ -1,48 +0,0 @@
|
|||||||
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
|
|
Loading…
Reference in New Issue
Block a user