Skip to content

Commit d83373a

Browse files
author
Seeker04
committed
Version format was not fully consistent ('v' missing from some places)
1 parent 131e611 commit d83373a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/plwm.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2256,7 +2256,7 @@
22562256
parse_opt(help(true)) :-
22572257
writeln("Usage: plwm [OPTION]..."),
22582258
opts_spec(OptsSpec), opt_help(OptsSpec, Help), writeln(Help), quit.
2259-
parse_opt(version(true)) :- version(V), write("plwm version "), writeln(V), quit.
2259+
parse_opt(version(true)) :- version(V), write("plwm version v"), writeln(V), quit.
22602260
parse_opt(config(Cnf)) :- (Cnf \= unset -> assertz(config_flag(Cnf)) ; true).
22612261
parse_opt(log(Log)) :-
22622262
(Log \= stdout ->

tests/check_all.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
set -e # stop immediately if any command fails
66

7-
version=$(sed -n 's/^version(\([0-9.]\+\))\.$/\1/p' src/plwm.pl)
7+
version="v$(sed -n 's/^version(\([0-9.]\+\))\.$/\1/p' src/plwm.pl)"
88
commit=$(git rev-parse --short HEAD)
99
arch="$(uname | tr A-Z a-z)-$(uname -m | tr A-Z a-z)"
1010

11-
trap "echo -e \"\nChecks FAILED for plwm v$version [$commit] on $arch!\"" ERR
11+
trap "echo -e \"\nChecks FAILED for plwm $version [$commit] on $arch!\"" ERR
1212

1313
echo
14-
echo "Checking integrity of plwm v$version [$commit] on $arch"
14+
echo "Checking integrity of plwm $version [$commit] on $arch"
1515

1616
echo
1717
echo "----------------------------------------------------------------------"
@@ -274,5 +274,5 @@ echo "----------------------------------------------------------------------"
274274
verify_uninstall
275275

276276
echo
277-
echo "All checks PASSED for plwm v$version [$commit] on $arch"
277+
echo "All checks PASSED for plwm $version [$commit] on $arch"
278278

tools/generate_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e # stop immediately if any command fails
66

77
trap 'echo "An error occured!"' ERR
88

9-
version=$(sed -n 's/^version(\([0-9.]\+\))\.$/\1/p' src/plwm.pl)
9+
version="v$(sed -n 's/^version(\([0-9.]\+\))\.$/\1/p' src/plwm.pl)"
1010
commit=$(git rev-parse --short HEAD)
1111
arch="$(uname | tr A-Z a-z)-$(uname -m | tr A-Z a-z)"
1212

0 commit comments

Comments
 (0)