Browse Source

Fixed software instructions.

dev
Franco Masotti 8 months ago
parent
commit
83a4dab38f
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 6
      _pages/software_instructions.md

6
_pages/software_instructions.md

@ -68,7 +68,7 @@ You may contact me directly to obtain the public key fingerprint in a different
Get this variable with:
```shell
git describe
git describe --tags $(git rev-list --tags --max-count=1)
```
- `tag_raw`: same as `tag` but pad each component of the tag with 6 zeros.
@ -80,14 +80,14 @@ You may contact me directly to obtain the public key fingerprint in a different
This is the one liner command to get the date:
```shell
python3 -c 'from dateutil import parser as dateutil_parser; from dateutil.tz import UTC; import sys; p = dateutil_parser.parse(sys.argv[1]); u=p.astimezone(UTC); print(u.strftime("%Y-%m-%d"))' "$(git tag -l $(git describe) --format='%(taggerdate)')"
python3 -c 'from dateutil import parser as dateutil_parser; from dateutil.tz import UTC; import sys; p = dateutil_parser.parse(sys.argv[1]); u=p.astimezone(UTC); print(u.strftime("%Y-%m-%d"))' "$(git tag -l --format='%(taggerdate)' $(git describe --tags $(git rev-list --tags --max-count=1)))"
```
- `project_version_release_timestamp`: the timestamp of a software version (tag) in UTC format.
This is the one liner command to get the timestamp:
```shell
python3 -c 'from dateutil import parser as dateutil_parser; from dateutil.tz import UTC; import sys; p = dateutil_parser.parse(sys.argv[1]); u=p.astimezone(UTC); print(u.strftime("%Y-%m-%d %T"))' "$(git tag -l $(git describe) --format='%(taggerdate)')"
python3 -c 'from dateutil import parser as dateutil_parser; from dateutil.tz import UTC; import sys; p = dateutil_parser.parse(sys.argv[1]); u=p.astimezone(UTC); print(u.strftime("%Y-%m-%d %T"))' "$(git tag -l --format='%(taggerdate)' $(git describe --tags $(git rev-list --tags --max-count=1)))"
```
- `changelog_slugified_header`: the slugified header corresponding to a tag in a changelog file

Loading…
Cancel
Save