Changeset 811f42a
- Timestamp:
- 05/02/2021 08:23:32 AM (2 years ago)
- Branches:
- xry111/usr-move
- Children:
- b7dc3d8
- Parents:
- a68ea9a (diff), 54ee51d4 (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. - Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/createfiles.xml
ra68ea9a r811f42a 48 48 as well:</para> 49 49 50 <screen><userinput>echo "127.0.0.1 localhost $(hostname)" > /etc/hosts</userinput></screen> 50 <screen><userinput>cat > /etc/hosts << EOF 51 "127.0.0.1 localhost $(hostname)" 52 ::1 localhost 53 EOF</userinput></screen> 51 54 52 55 <para>In order for user <systemitem class="username">root</systemitem> to be -
git-version.sh
ra68ea9a r811f42a 15 15 16 16 commit_date=$(git show -s --format=format:"%cd" --date=local) 17 short_date=$(date --date "$commit_date" "+%Y%m%d")18 17 19 18 year=$(date --date "$commit_date" "+%Y") … … 31 30 full_date="$month $day$suffix, $year" 32 31 33 sha="g$(git describe --always)" 34 version="GIT-$short_date-$sha" 35 versiond="GIT-$short_date-$sha-systemd" 32 sha="$(git describe --abbrev=1)" 33 if [ "$(git branch --show-current)" = "trunk" ]; then 34 sha=$(echo "$sha" | sed 's/-g[^-]*$//') 35 fi 36 version="$sha" 37 versiond="$sha-systemd" 36 38 37 39 if [ "$(git diff HEAD | wc -l)" != "0" ]; then 38 version="$version -MODIFIED"39 versiond="$versiond -MODIFIED"40 version="$version+" 41 versiond="$versiond+" 40 42 fi 41 43
Note:
See TracChangeset
for help on using the changeset viewer.