Changeset e3047fd
- Timestamp:
- 01/25/2023 12:01:41 PM (15 months ago)
- 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
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r4653242 re3047fd 10 10 SHELL = /bin/bash 11 11 12 #PYHOSTED = general/prog/python-dependencies/pythonhosted.xml13 #ALLXML := $(filter-out $(RENDERTMP)/%, \14 # $(filter-out $(PYHOSTED), \15 # $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml)))16 12 ALLXML := $(filter-out $(RENDERTMP)/%, \ 17 13 $(wildcard *.xml */*.xml */*/*.xml */*/*/*.xml */*/*/*/*.xml)) 18 14 ALLXSL := $(filter-out $(RENDERTMP)/%, \ 19 15 $(wildcard *.xsl */*.xsl */*/*.xsl */*/*/*.xsl */*/*/*/*.xsl)) 20 16 21 17 ifdef V … … 34 30 endif 35 31 endif 36 37 # Let's get the previous REV: it'll be used to see if we should38 # rebuild version.ent39 PREVREV != if [ -f conditional.ent ]; then \40 gawk '/INCLUDE/{ print $$3 }' conditional.ent; \41 fi42 32 43 33 ifeq ($(REV), sysv) … … 58 48 endif 59 49 50 60 51 blfs: html wget-list 61 52 … … 110 101 111 102 html: $(BASEDIR)/index.html 112 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) 103 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version 113 104 @echo "Generating chunked XHTML files..." 114 105 $(Q)xsltproc --nonet \ … … 144 135 145 136 nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT) 146 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) 137 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version 147 138 @echo "Generating non-chunked XHTML file..." 148 139 $(Q)xsltproc --nonet \ … … 167 158 168 159 validate: $(RENDERTMP)/$(BLFSFULL) 169 #$(RENDERTMP)/$(BLFSFULL): $(PYHOSTED) version.ent 170 $(RENDERTMP)/$(BLFSFULL): version.ent 160 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version 171 161 $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP) 172 162 … … 187 177 188 178 profile-html: $(RENDERTMP)/$(BLFSHTML) 189 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) 179 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version 190 180 @echo "Generating profiled XML for XHTML..." 191 181 $(Q)xsltproc --nonet \ … … 200 190 blfs-patches.sh > blfs-patch-list 201 191 202 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) 192 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version 203 193 @echo "Generating blfs patch script..." 204 194 $(Q)xsltproc --nonet \ … … 208 198 209 199 wget-list: $(BASEDIR)/wget-list 210 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) 200 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version 211 201 @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..." 212 202 $(Q)mkdir -p $(BASEDIR) … … 217 207 218 208 test-links: $(BASEDIR)/test-links 219 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) 209 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version 220 210 @echo "Generating test-links file..." 221 211 $(Q)mkdir -p $(BASEDIR) … … 269 259 270 260 dump-commands: $(DUMPDIR) 271 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) 261 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version 272 262 @echo "Dumping book commands..." 273 263 $(Q)xsltproc --output $(DUMPDIR)/ \ … … 276 266 $(Q)touch $(DUMPDIR) 277 267 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 272 version: 273 $(Q)./git-version.sh $(REV) -
git-version.sh
r4653242 re3047fd 11 11 exit 1 12 12 fi 13 14 shift 115 13 16 14 echo "<!ENTITY % sysv \"$SYSV\">" > conditional.ent … … 30 28 export TZ=America/Chicago 31 29 32 sha=$(git log -s --format=format:"%H" --date=local -1 $*) 33 commit_date=$(git log -s --format=format:"%cd" --date=local -1 $*) 30 commit_date=$(git show -s --format=format:"%cd" --date=local) 34 31 short_date=$(date --date "$commit_date" "+%Y-%m-%d") 35 32 … … 48 45 full_date="$month $day$suffix, $year" 49 46 50 sha="$(git describe --abbrev=1 $sha)"47 sha="$(git describe --abbrev=1)" 51 48 version=$(echo "$sha" | sed 's/-g[^-]*$//') 49 50 if [ "$(git diff HEAD | wc -l)" != "0" ]; then 51 version="$version+" 52 fi 52 53 53 54 echo "<!ENTITY year \"$year\">" > version.ent
Note:
See TracChangeset
for help on using the changeset viewer.