mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
contrib/_incr_version: Disallow the "v"-prefixed version format
The check is a bit strange but should be POSIX compliant.
This commit is contained in:
parent
6deb4ff40b
commit
380f6c9b46
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
#!/bin/sh -eu
|
#!/bin/sh -eu
|
||||||
old_version="$1"
|
old_version="$1"
|
||||||
new_version="$2"
|
new_version="$2"
|
||||||
|
|
||||||
|
if [ "$new_version" != "${new_version#v}" ]
|
||||||
|
then
|
||||||
|
echo "Error: The new version shouldn't be prefixed with a \"v\"." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g"
|
sed -i meson.build -e "s/^ version: .*#release_version/ version: '$new_version', #release_version/g"
|
||||||
|
|
||||||
printf "Minimum wlroots version? "
|
printf "Minimum wlroots version? "
|
||||||
|
|
Loading…
Reference in a new issue