Changeset e3047fd


Ignore:
Timestamp:
01/25/2023 12:01:41 PM (15 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
2c0a093
Parents:
4653242
Message:

Restore the render system to what it was before pythonhosted changes

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r4653242 re3047fd  
    1010SHELL        = /bin/bash
    1111
    12 #PYHOSTED = general/prog/python-dependencies/pythonhosted.xml
    13 #ALLXML := $(filter-out $(RENDERTMP)/%, \
    14 #       $(filter-out $(PYHOSTED), \
    15 #       $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml)))
    1612ALLXML := $(filter-out $(RENDERTMP)/%, \
    17             $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml))
     13        $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml))
    1814ALLXSL := $(filter-out $(RENDERTMP)/%, \
    19             $(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl))
     15        $(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl))
    2016
    2117ifdef V
     
    3430  endif
    3531endif
    36 
    37 # Let's get the previous REV: it'll be used to see if we should
    38 # rebuild version.ent
    39 PREVREV != if [ -f conditional.ent ]; then \
    40               gawk '/INCLUDE/{ print $$3 }' conditional.ent; \
    41            fi
    4232
    4333ifeq ($(REV), sysv)
     
    5848endif
    5949
     50
    6051blfs: html wget-list
    6152
     
    110101
    111102html: $(BASEDIR)/index.html
    112 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML)
     103$(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
    113104        @echo "Generating chunked XHTML files..."
    114105        $(Q)xsltproc --nonet                                    \
     
    144135
    145136nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    146 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML)
     137$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
    147138        @echo "Generating non-chunked XHTML file..."
    148139        $(Q)xsltproc --nonet                                \
     
    167158
    168159validate: $(RENDERTMP)/$(BLFSFULL)
    169 #$(RENDERTMP)/$(BLFSFULL): $(PYHOSTED) version.ent
    170 $(RENDERTMP)/$(BLFSFULL): version.ent
     160$(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version
    171161        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    172162
     
    187177
    188178profile-html: $(RENDERTMP)/$(BLFSHTML)
    189 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL)
     179$(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version
    190180        @echo "Generating profiled XML for XHTML..."
    191181        $(Q)xsltproc --nonet                              \
     
    200190          blfs-patches.sh > blfs-patch-list
    201191
    202 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL)
     192blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version
    203193        @echo "Generating blfs patch script..."
    204194        $(Q)xsltproc --nonet                     \
     
    208198
    209199wget-list: $(BASEDIR)/wget-list
    210 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL)
     200$(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version
    211201        @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..."
    212202        $(Q)mkdir -p $(BASEDIR)
     
    217207
    218208test-links: $(BASEDIR)/test-links
    219 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL)
     209$(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version
    220210        @echo "Generating test-links file..."
    221211        $(Q)mkdir -p $(BASEDIR)
     
    269259
    270260dump-commands: $(DUMPDIR)
    271 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL)
     261$(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version
    272262        @echo "Dumping book commands..."
    273263        $(Q)xsltproc --output $(DUMPDIR)/          \
     
    276266        $(Q)touch $(DUMPDIR)
    277267
    278 .PHONY: blfs all world html nochunks tmpdir clean  \
    279    validate profile-html blfs-patch-list wget-list \
    280         test-links dump-commands  bootscripts systemd-units
    281 
    282 # make version.ent unconditionally if we have changed REV
    283 ifneq ($(REV), $(PREVREV))
    284    .PHONY: version.ent
    285 endif
    286 
    287 version.ent: git-version.sh general.ent packages.ent gnome.ent $(ALLXML) $(ALLXSL) Makefile
    288         $(Q)./$< $(REV) $^
    289 
    290 #ALL_PYTHON_DEPS := $(filter-out $(PYHOSTED), \
    291 #                   $(wildcard general/prog/python-dependencies/*.xml))
    292 #
    293 #PYTHONHOSTED_MODS := requests sphinx_rtd_theme pytest gi-docgen
    294 #
    295 #PYTHONHOSTED_MOD_PAGES := $(addprefix general/prog/python-modules/,\
    296 #                          $(addsuffix .xml,$(PYTHONHOSTED_MODS)))
    297 #
    298 #$(PYHOSTED): $(ALL_PYTHON_DEPS)           \
    299 #             $(PYTHONHOSTED_MOD_PAGES)    \
    300 #             stylesheets/pyhosted-inc.xsl \
    301 #             stylesheets/pythonhosted.xsl | version.ent
    302 #       @echo Generating pythonhosted.xml; \
    303 #   if [ ! -f $@ ]; then               \
    304 #      cp dummy.xml $(PYHOSTED);       \
    305 #   fi
    306 #       $(Q)xsltproc --xinclude                                    \
    307 #                --output temp.xml                             \
    308 #                --stringparam packages "$(PYTHONHOSTED_MODS)" \
    309 #                stylesheets/pythonhosted.xsl                  \
    310 #                general/prog/python-modules.xml
    311 #       $(Q)mv temp.xml $@
     268.PHONY: blfs all world html nochunks tmpdir clean             \
     269   validate profile-html blfs-patch-list wget-list test-links \
     270   dump-commands  bootscripts systemd-units version
     271
     272version:
     273        $(Q)./git-version.sh $(REV)
  • git-version.sh

    r4653242 re3047fd  
    1111    exit 1
    1212fi
    13 
    14 shift 1
    1513
    1614echo "<!ENTITY % sysv    \"$SYSV\">"     >  conditional.ent
     
    3028export TZ=America/Chicago
    3129
    32 sha=$(git log -s --format=format:"%H" --date=local -1 $*)
    33 commit_date=$(git log -s --format=format:"%cd" --date=local -1 $*)
     30commit_date=$(git show -s --format=format:"%cd" --date=local)
    3431short_date=$(date --date "$commit_date" "+%Y-%m-%d")
    3532
     
    4845full_date="$month $day$suffix, $year"
    4946
    50 sha="$(git describe --abbrev=1 $sha)"
     47sha="$(git describe --abbrev=1)"
    5148version=$(echo "$sha" | sed 's/-g[^-]*$//')
     49
     50if [ "$(git diff HEAD | wc -l)" != "0" ]; then
     51    version="$version+"
     52fi
    5253
    5354echo "<!ENTITY year              \"$year\">"               >  version.ent
Note: See TracChangeset for help on using the changeset viewer.