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 \
|
$(Q)if ! [ -f $@ ]; then \
|
||||||
echo Initializing $(TRACKFILE) && \
|
echo Initializing $(TRACKFILE) && \
|
||||||
echo '$(INITIAL_TRACK)' > $@ && \
|
echo '$(INITIAL_TRACK)' > $@ && \
|
||||||
$(MAKE) $(PACK_LIST) && \
|
$(MAKE) $(PACK_LIST); \
|
||||||
for track in $(TRACKING_DIR)/*-*; do \
|
fi
|
||||||
if [ -f $track ]; then \
|
@for track in $(TRACKING_DIR)/*-*; do \
|
||||||
|
if [ -f $$track ]; then \
|
||||||
pack=$$(echo $$track | sed 's@.*/\(.*\)-[0-9c].*@\1@') && \
|
pack=$$(echo $$track | sed 's@.*/\(.*\)-[0-9c].*@\1@') && \
|
||||||
|
version=$$(echo $$track | sed 's@.*-\([0-9c].*\)@\1@') && \
|
||||||
xsltproc --stringparam packages $(PACK_LIST) \
|
xsltproc --stringparam packages $(PACK_LIST) \
|
||||||
--stringparam package $$pack \
|
--stringparam package $$pack \
|
||||||
|
--stringparam version $$version \
|
||||||
-o track.tmp $(XSLDIR)/bump.xsl $@ && \
|
-o track.tmp $(XSLDIR)/bump.xsl $@ && \
|
||||||
sed -i 's@PACKDESC@$(TOPDIR)/packdesc.dtd@' track.tmp && \
|
sed -i 's@PACKDESC@$(TOPDIR)/packdesc.dtd@' track.tmp && \
|
||||||
xmllint --format --postvalid track.tmp > $@; \
|
xmllint --format --postvalid track.tmp > $@; \
|
||||||
fi; \
|
fi; \
|
||||||
done; \
|
done; \
|
||||||
rm -f track.tmp; \
|
rm -f track.tmp
|
||||||
fi
|
|
||||||
|
|
||||||
$(TRACKING_DIR):
|
$(TRACKING_DIR):
|
||||||
@echo Creating $(TRACKING_DIR)
|
@echo Creating $(TRACKING_DIR)
|
||||||
|
|
Reference in a new issue