mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-19 11:49:20 +01:00
Merge branch 'trunk' into multilib
This commit is contained in:
commit
6cc87753ec
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if ! git status; then
|
if ! git status > /dev/null; then
|
||||||
# Either it's not a git repository, or git is unavaliable.
|
# Either it's not a git repository, or git is unavaliable.
|
||||||
# Just workaround.
|
# Just workaround.
|
||||||
echo "<!ENTITY version \"unknown\">" > version.ent
|
echo "<!ENTITY version \"unknown\">" > version.ent
|
||||||
@ -19,7 +19,7 @@ short_date=$(date --date "$commit_date" "+%Y%m%d")
|
|||||||
year=$(date --date "$commit_date" "+%Y")
|
year=$(date --date "$commit_date" "+%Y")
|
||||||
month=$(date --date "$commit_date" "+%B")
|
month=$(date --date "$commit_date" "+%B")
|
||||||
month_digit=$(date --date "$commit_date" "+%m")
|
month_digit=$(date --date "$commit_date" "+%m")
|
||||||
day=$(date --date "$commit_date" "+%d" | sed 's@^0@@')
|
day=$(date --date "$commit_date" "+%d" | sed 's/^0//')
|
||||||
|
|
||||||
case $day in
|
case $day in
|
||||||
"1" | "21" | "31" ) suffix="st";;
|
"1" | "21" | "31" ) suffix="st";;
|
||||||
|
Loading…
Reference in New Issue
Block a user