mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 14:49:21 +01:00
sandbox/update-version: Simplify logic in updating version while still using UTC time.
Conflicts: sandbox/update-version src/version.py
This commit is contained in:
parent
2c4adf123c
commit
33debcd565
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
echo "Updating version..."
|
||||
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( TZ="/usr/share/zoneinfo/UTC" date -Iseconds ))'/" src/version.py
|
||||
git add src/version.py
|
||||
# vim: set ft=sh: syntax:
|
||||
echo -n "Updating version... "
|
||||
perl -pi -e "s/^version\s*=\s*['\"]([\S]+)[ '\"].*/version = '\1 ($( date -u -Iseconds ))'/" src/version.py
|
||||
git add src/version.py && echo "done"
|
||||
|
||||
# vim: set ft=sh:
|
||||
|
Loading…
Reference in New Issue
Block a user