Changeset 17c9da8


Ignore:
Timestamp:
04/15/2021 09:31:50 AM (4 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
84de88e
Parents:
1adab68
Message:

generate version info from git

Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r1adab68 r17c9da8  
    5656
    5757html: $(BASEDIR)/index.html
    58 $(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML)
     58$(BASEDIR)/index.html: $(RENDERTMP)/$(BLFSHTML) version
    5959        @echo "Generating chunked XHTML files..."
    6060        $(Q)xsltproc --nonet                                    \
     
    8989
    9090nochunks: $(BASEDIR)/$(NOCHUNKS_OUTPUT)
    91 $(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML)
     91$(BASEDIR)/$(NOCHUNKS_OUTPUT): $(RENDERTMP)/$(BLFSHTML) version
    9292        @echo "Generating non-chunked XHTML file..."
    9393        $(Q)xsltproc --nonet                                \
     
    112112
    113113validate: $(RENDERTMP)/$(BLFSFULL)
    114 $(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL)
     114$(RENDERTMP)/$(BLFSFULL): general.ent packages.ent $(ALLXML) $(ALLXSL) version
    115115        $(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
    116116
     
    131131
    132132profile-html: $(RENDERTMP)/$(BLFSHTML)
    133 $(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL)
     133$(RENDERTMP)/$(BLFSHTML): $(RENDERTMP)/$(BLFSFULL) version
    134134        @echo "Generating profiled XML for XHTML..."
    135135        $(Q)xsltproc --nonet                              \
     
    144144          blfs-patches.sh > blfs-patch-list
    145145
    146 blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL)
     146blfs-patches.sh: $(RENDERTMP)/$(BLFSFULL) version
    147147        @echo "Generating blfs patch script..."
    148148        $(Q)xsltproc --nonet                     \
     
    152152
    153153wget-list: $(BASEDIR)/wget-list
    154 $(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL)
     154$(BASEDIR)/wget-list: $(RENDERTMP)/$(BLFSFULL) version
    155155        @echo "Generating wget list for $(REV) at $(BASEDIR)/wget-list ..."
    156156        $(Q)mkdir -p $(BASEDIR)
     
    161161
    162162test-links: $(BASEDIR)/test-links
    163 $(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL)
     163$(BASEDIR)/test-links: $(RENDERTMP)/$(BLFSFULL) version
    164164        @echo "Generating test-links file..."
    165165        $(Q)mkdir -p $(BASEDIR)
     
    213213
    214214dump-commands: $(DUMPDIR)
    215 $(DUMPDIR): $(RENDERTMP)/$(BLFSFULL)
     215$(DUMPDIR): $(RENDERTMP)/$(BLFSFULL) version
    216216        @echo "Dumping book commands..."
    217217        $(Q)xsltproc --output $(DUMPDIR)/          \
     
    222222.PHONY: blfs all world html nochunks tmpdir clean  \
    223223   validate profile-html blfs-patch-list wget-list test-links \
    224    dump-commands  bootscripts systemd-units
    225 
    226 
     224   dump-commands  bootscripts systemd-units version
     225
     226version:
     227        $(Q)./git-version.sh
  • book/bookinfo.xml

    r1adab68 r17c9da8  
    4949  <revhistory>
    5050    <revision>
    51       <revnumber>&version;</revnumber>
     51      <revnumber>&short-version;</revnumber>
    5252      <date>&pubdate;</date>
    5353      <revremark>Ongoing Release</revremark>
  • general.ent

    r1adab68 r17c9da8  
    1 <!-- $LastChangedBy$ $Date$ -->
     1<!-- version info generated from git commit,
     2     comment out the following two lines for release. -->
     3<!ENTITY % version-entities SYSTEM "version.ent">
     4%version-entities;
    25
    3 <!ENTITY day          "15">                   <!-- Always 2 digits -->
    4 <!ENTITY month        "04">                   <!-- Always 2 digits -->
    5 <!ENTITY year         "2021">
    6 <!ENTITY copyrightdate "2001-&year;">
     6<!-- uncomment the following entities and modify them for release,
     7     month and year should be always 2 digits. -->
     8<!--
     9<!ENTITY day            "01">
     10<!ENTITY month          "09">
     11<!ENTITY year           "2021">
     12<!ENTITY copyrightdate  "2001-2021">
     13<!ENTITY version        "10.2">
     14<!ENTITY releasedate    "September 1st, &year;">
     15<!ENTITY pubdate        "&year;-&month;-&day;">
     16<!ENTITY short-version "&version;">
     17-->
     18
    719<!ENTITY copyholder   "The BLFS Development Team">
    8 <!ENTITY version      "&year;-&month;-&day;">
    9 <!ENTITY releasedate  "April 15th, &year;">
    10 <!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
    1120<!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
    1221<!ENTITY lfs-version  "development">          <!-- x.y|development -->
    1322<!ENTITY lfs-versiond "systemd">              <!-- x.y-systemd|systemd -->
    14 <!ENTITY last-commit  "$Date$"> <!-- Automatic update -->
    1523<!ENTITY lfs-domainname       "linuxfromscratch.org">
    1624
Note: See TracChangeset for help on using the changeset viewer.