Skip to content
Snippets Groups Projects
Commit 66993edc authored by Alexander Schwinn's avatar Alexander Schwinn
Browse files

xfce-do-release: match multiple spaces for git version replace

Makes 'xfce-do-release' as well usable for xfwm4, which has some more
spaces in the line: 'm4_define([xfwm4_version_tag],   [git])'

MR !74
parent 5a965bc8
No related branches found
No related tags found
1 merge request!74xfce-do-release - match multiple spaces for git version replace
......@@ -217,10 +217,10 @@ update_configure_ac_in () {
-e "s/^\(m4_define(\[.*_version_major\].* \[\)\(.*\)\(\])\)/\1$version_major\3/g" \
-e "s/^\(m4_define(\[.*_version_minor\].* \[\)\(.*\)\(\])\)/\1$version_minor\3/g" \
-e "s/^\(m4_define(\[.*_version_micro\].* \[\)\(.*\)\(\])\)/\1$version_patch\3/g" \
-e 's/^\(m4_define(\[.*_version_tag\], \[\)\(git\)\(\])\)/\1\3/g' \
-e 's/^\(m4_define(\[.*_version_tag\],* \[\)\(git\)\(\])\)/\1\3/g' \
"$configure_file"
elif [ "$1" = "post" ]; then
sed -i 's/\(m4_define(\[.*_version_tag\], \[\)\(.*\)\(\])\)/\1git\3/g' "$configure_file"
sed -i 's/\(m4_define(\[.*_version_tag\],* \[\)\(.*\)\(\])\)/\1git\3/g' "$configure_file"
fi
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment