Changeset bd90b9b
- Timestamp:
- 09/01/2021 09:08:49 AM (3 years ago)
- Branches:
- 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-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/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 615f5b8
- Parents:
- 3443abb
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r3443abb rbd90b9b 1 1 lfs-bootscripts-*.tar.xz 2 conditional.ent 2 3 version.ent 3 4 appendices/*.script -
Makefile
r3443abb rbd90b9b 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
r3443abb rbd90b9b 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"> … … 14 22 <!-- jhalfs needs a literal dash, not – --> 15 23 24 <![ %sysv; [ 16 25 <!ENTITY short-version "svn"> <!-- Used below in &blfs-book; 17 26 Change to x.y for release but not -rc releases --> 18 27 <!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" --> 19 20 <!ENTITY short-versiond "systemd"> <!--Change to stable-systemd for release --> 21 <!ENTITY generic-versiond "systemd"> 28 ]]> 29 <![ %systemd; [ 30 <!ENTITY short-version "systemd"> <!--Change to stable-systemd for release --> 31 <!ENTITY generic-version "systemd"> 32 ]]> 22 33 23 34 <!ENTITY lfs-root "https://www.linuxfromscratch.org/"> 24 35 <!ENTITY blfs-root "&lfs-root;blfs/"> 25 36 <!ENTITY blfs-book "&blfs-root;view/&short-version;/"> 26 <!ENTITY blfs- systemd-book "&blfs-root;view/&short-versiond;/">37 <!ENTITY blfs-book "&blfs-root;view/&short-version;/"> 27 38 <!ENTITY faq-root "&lfs-root;faq/"> 28 39 <!ENTITY hints-root "&lfs-root;hints/downloads/files/"> … … 35 46 <!ENTITY secadv "&lfs-root;lfs/advisories/"> 36 47 <!ENTITY min-kernel "3.2"> 37 48 <!-- 38 49 <!ENTITY patches-rootd "&lfs-root;patches/lfs/&generic-versiond;/"> 39 50 <!ENTITY downloads-rootd "&lfs-root;lfs/downloads/&generic-versiond;/"> 40 51 <!ENTITY test-resultsd "&lfs-root;lfs/build-logs/&generic-versiond;/"> 41 52 <!ENTITY erratad "&lfs-root;lfs/errata/&generic-versiond;/"> 42 53 --> 43 54 <!ENTITY lfs-ticket-root "https://wiki.linuxfromscratch.org/lfs/ticket/"> 44 55 -
git-version.sh
r3443abb rbd90b9b 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.