Add the version parameter of bump.xsl to Makefile
Separates first install of instpkg.xml from subsequent updates due to new packages present in TRACK_DIR
This commit is contained in:
parent
f3a500d5ef
commit
34986b88da
1 changed files with 7 additions and 5 deletions
|
@ -69,19 +69,21 @@ $(TRACKFILE): $(TRACKING_DIR)
|
|||
$(Q)if ! [ -f $@ ]; then \
|
||||
echo Initializing $(TRACKFILE) && \
|
||||
echo '$(INITIAL_TRACK)' > $@ && \
|
||||
$(MAKE) $(PACK_LIST) && \
|
||||
for track in $(TRACKING_DIR)/*-*; do \
|
||||
if [ -f $track ]; then \
|
||||
$(MAKE) $(PACK_LIST); \
|
||||
fi
|
||||
@for track in $(TRACKING_DIR)/*-*; do \
|
||||
if [ -f $$track ]; then \
|
||||
pack=$$(echo $$track | sed 's@.*/\(.*\)-[0-9c].*@\1@') && \
|
||||
version=$$(echo $$track | sed 's@.*-\([0-9c].*\)@\1@') && \
|
||||
xsltproc --stringparam packages $(PACK_LIST) \
|
||||
--stringparam package $$pack \
|
||||
--stringparam version $$version \
|
||||
-o track.tmp $(XSLDIR)/bump.xsl $@ && \
|
||||
sed -i 's@PACKDESC@$(TOPDIR)/packdesc.dtd@' track.tmp && \
|
||||
xmllint --format --postvalid track.tmp > $@; \
|
||||
fi; \
|
||||
done; \
|
||||
rm -f track.tmp; \
|
||||
fi
|
||||
rm -f track.tmp
|
||||
|
||||
$(TRACKING_DIR):
|
||||
@echo Creating $(TRACKING_DIR)
|
||||
|
|
Reference in a new issue