Changeset 4467b18d
- Timestamp:
- 09/22/2021 09:11:52 PM (2 years ago)
- Branches:
- 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, arm, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/parallelism, xry111/pip3, xry111/rust-wip-20221008
- Children:
- 784fdaed
- Parents:
- 2f14259
- git-author:
- Pierre Labastie <pierre.labastie@…> (09/01/2021 09:08:49 AM)
- git-committer:
- Pierre Labastie <pierre.labastie@…> (09/22/2021 09:11:52 PM)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r2f14259 r4467b18d 1 1 lfs-bootscripts-*.tar.xz 2 conditional.ent 2 3 version.ent 3 4 appendices/*.script -
Makefile
r2f14259 r4467b18d 190 190 191 191 version: 192 $(Q)./git-version.sh 192 $(Q)./git-version.sh $(REV) 193 193 194 194 #dump-commands: validate -
general.ent
r2f14259 r4467b18d 1 <!-- Automatically generated by git-version.sh --> 2 <!ENTITY % conditional-entities SYSTEM "conditional.ent"> 3 %conditional-entities; 4 1 5 <!-- version info automatically generated by git 2 comment the following two lines for release -->6 comment out the following two lines for release --> 3 7 <!ENTITY % version-entities SYSTEM "version.ent"> 4 8 %version-entities; … … 7 11 for releases (including -rc) --> 8 12 <!-- 13 <![ %sysv; [ 9 14 <!ENTITY version "10.2-rc1"> 10 <!ENTITY versiond "10.2-systemd-rc1"> 15 ]]> 16 <![ %systemd; [ 17 <!ENTITY version "10.2-systemd-rc1"> 18 ]]> 11 19 <!ENTITY releasedate "August 26th, 2021"> 12 20 <!ENTITY copyrightdate "1999-2021"> 13 21 --> 14 22 15 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 23 <![ %sysv; [ 24 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 16 25 Change to x.y for release but not -rc releases --> 17 26 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 18 19 <!ENTITY short-versiond "systemd"> <!--Change to stable-systemd for release --> 20 <!ENTITY generic-versiond "systemd"> 27 ]]> 28 <![ %systemd; [ 29 <!ENTITY short-version "systemd"> <!--Change to stable-systemd for release --> 30 <!ENTITY generic-version "systemd"> 31 ]]> 21 32 22 33 <!ENTITY lfs-root "https://www.linuxfromscratch.org/"> 23 34 <!ENTITY blfs-root "&lfs-root;blfs/"> 24 35 <!ENTITY blfs-book "&blfs-root;view/&short-version;/"> 25 <!ENTITY blfs- systemd-book "&blfs-root;view/&short-versiond;/">36 <!ENTITY blfs-book "&blfs-root;view/&short-version;/"> 26 37 <!ENTITY faq-root "&lfs-root;faq/"> 27 38 <!ENTITY hints-root "&lfs-root;hints/downloads/files/"> … … 34 45 <!ENTITY secadv "&lfs-root;lfs/advisories/"> 35 46 <!ENTITY min-kernel "3.2"> 36 47 <!-- 37 48 <!ENTITY patches-rootd "&lfs-root;patches/lfs/&generic-versiond;/"> 38 49 <!ENTITY downloads-rootd "&lfs-root;lfs/downloads/&generic-versiond;/"> 39 50 <!ENTITY test-resultsd "&lfs-root;lfs/build-logs/&generic-versiond;/"> 40 51 <!ENTITY erratad "&lfs-root;lfs/errata/&generic-versiond;/"> 41 52 --> 42 53 <!ENTITY lfs-ticket-root "https://wiki.linuxfromscratch.org/lfs/ticket/"> 43 54 -
git-version.sh
r2f14259 r4467b18d 1 1 #!/bin/sh 2 3 if [ "$1" = sysv ]; then 4 SYSV="INCLUDE" 5 SYSTEMD="IGNORE " 6 elif [ "$1" = systemd ]; then 7 SYSV="IGNORE " 8 SYSTEMD="INCLUDE" 9 else 10 echo You must provide either \"sysv\" or \"systemd\" as argument 11 exit 1 12 fi 13 14 echo "<!ENTITY % sysv \"$SYSV\">" > conditional.ent 15 echo "<!ENTITY % systemd \"$SYSTEMD\">" >> conditional.ent 2 16 3 17 if ! git status > /dev/null; then 4 18 # Either it's not a git repository, or git is unavaliable. 5 19 # Just workaround. 6 echo "<!ENTITY version \"unknown\">" > version.ent 7 echo "<!ENTITY versiond \"unknown-systemd\">" >> version.ent 20 echo "<![ %sysv; [" > version.ent 21 echo "<!ENTITY version \"unknown\">" >> version.ent 22 echo "]]>" >> version.ent 23 echo "<![ %systemd; [" >> version.ent 24 echo "<!ENTITY version \"unknown-systemd\">" >> version.ent 25 echo "]]>" >> version.ent 8 26 echo "<!ENTITY releasedate \"unknown\">" >> version.ent 9 27 echo "<!ENTITY copyrightdate \"1999-2021\">" >> version.ent … … 42 60 fi 43 61 44 echo "<!ENTITY version \"$version\">" > version.ent 45 echo "<!ENTITY versiond \"$versiond\">" >> version.ent 62 echo "<![ %sysv; [" > version.ent 63 echo "<!ENTITY version \"$version\">" >> version.ent 64 echo "]]>" >> version.ent 65 echo "<![ %systemd; [" >> version.ent 66 echo "<!ENTITY version \"$versiond\">" >> version.ent 67 echo "]]>" >> version.ent 46 68 echo "<!ENTITY releasedate \"$full_date\">" >> version.ent 47 69 echo "<!ENTITY copyrightdate \"1999-$year\">" >> version.ent
Note:
See TracChangeset
for help on using the changeset viewer.