mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
plugin-version.mk, plugin.mk, smart-selection.mk: Add files
This commit is contained in:
parent
f029316f96
commit
d7150c1fef
3 changed files with 40 additions and 4 deletions
13
make/plugin-version.mk
Normal file
13
make/plugin-version.mk
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
include $(MODDIR)/make/plugin-defs.mk
|
||||
include $(MODDIR)/make/defs.mk
|
||||
|
||||
all: $(PLUGIN_VERSION_LIB)
|
||||
clean: thisclean
|
||||
version.o: version.cpp
|
||||
g++ $(CPPFLAGS) -o $@ -c $<
|
||||
thisclean:
|
||||
rm -f version.o
|
||||
|
||||
$(PLUGIN_VERSION_LIB): version.o
|
||||
ar r $@ $<
|
||||
|
||||
|
|
@ -3,11 +3,8 @@
|
|||
# contact@jannet.de
|
||||
# $Id$
|
||||
|
||||
ifeq ($(PLUGIN),)
|
||||
PLUGIN = lib$(notdir $(shell pwd)).so
|
||||
endif
|
||||
|
||||
include $(MODDIR)/make/defs.mk
|
||||
include $(MODDIR)/make/plugin-defs.mk
|
||||
include $(MODDIR)/make/rules.mk
|
||||
include $(MODDIR)/make/depend.mk
|
||||
|
||||
|
|
|
|||
26
make/smart-selection.mk
Normal file
26
make/smart-selection.mk
Normal 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue