plugin-version.mk, plugin.mk, smart-selection.mk: Add files

This commit is contained in:
Jan Lindemann 2006-08-27 18:51:02 +00:00 committed by Jan Lindemann
commit d7150c1fef
3 changed files with 40 additions and 4 deletions

26
make/smart-selection.mk Normal file
View file

@ -0,0 +1,26 @@
MOD_SCRIPT_DIR = $(HOME)/local/src/cvs.main/lib/devutil/scripts
GENERATE_SELECTION = $(MOD_SCRIPT_DIR)/generate_selection.sh
SUSE_RELEASE = $(shell sed '/VERSION *=/ !d; s/VERSION *= *//' /etc/SuSE-release)
UPLOAD_URL = root@ftp.jannet.de:/home/ftp/dat/pub/packages/linux/suse/$(SUSE_RELEASE)/inst-source/setup/descr
UPLOAD_SH = $(MOD_SCRIPT_DIR)/upload.sh
SELECTION = $(shell sh $(GENERATE_SELECTION) -s).txt
all: $(SELECTION)
upload: upload.done
$(SELECTION):
rpm -qa --queryformat '%{NAME}' > $@.tmp
if diff $@ $@.tmp >/dev/null 2>&1; then mv $@.tmp $@; else rm -f $@.tmp; fi
clean:
rm -rf $(SELECTION) upload.done
upload.done: $(SELECTION)
sh $(UPLOAD_SH) $< $(UPLOAD_URL)
ssh -l root ftp.jannet.de /etc/cron.hourly/create_packet_descriptions.sh
touch $@
blah:
echo SUSE_RELEASE=$(SUSE_RELEASE)