Changeset ed431efc for git-version.sh
- Timestamp:
- 09/19/2023 07:14:59 AM (12 months ago)
- Branches:
- xry111/loongarch, xry111/loongarch-12.1, xry111/loongarch-12.2
- Children:
- 07fda6fe
- Parents:
- 706a5bb (diff), f510f26 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
git-version.sh
r706a5bb red431efc 1 #!/bin/ sh1 #!/bin/bash 2 2 3 3 if [ "$1" = sysv ]; then … … 15 15 echo "<!ENTITY % systemd \"$SYSTEMD\">" >> conditional.ent 16 16 17 if [ -e LFS-RELEASE ]; then 18 exit 0 19 fi 20 17 21 if ! git status > /dev/null; then 18 22 # Either it's not a git repository, or git is unavaliable. … … 25 29 echo "]]>" >> version.ent 26 30 echo "<!ENTITY releasedate \"unknown\">" >> version.ent 27 echo "<!ENTITY copyrightdate \"1999-202 2\">" >> version.ent31 echo "<!ENTITY copyrightdate \"1999-2023\">" >> version.ent 28 32 exit 0 29 33 fi … … 66 70 echo "<!ENTITY releasedate \"$full_date\">" >> version.ent 67 71 echo "<!ENTITY copyrightdate \"1999-$year\">" >> version.ent 72 73 [ -z "$DIST" ] || echo $version > "$DIST"
Note:
See TracChangeset
for help on using the changeset viewer.