Skip to content
Snippets Groups Projects
Commit 53a2f51b authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Pick up improved detection of version number.

parent 1fe8ba8a
No related branches found
No related tags found
No related merge requests found
......@@ -44,11 +44,9 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# meant to be included in shell scripts
package=$(grep -A 2 '^AC_INIT' configure.ac)
version=$(echo "$package" | sed -n -e '/^AC_INIT/{' -e \
's/^AC_INIT(\[[a-z]*\],\[\([0-9.]*\)\],.*/\1/;p;q;}')
package=$(echo "$package" | sed -n -e '/^AC_INIT/{' -e \
's/^AC_INIT(\[\([a-z]*\)\],\[[0-9.]*\],.*/\1/;p;q;}')
package=$(autoconf '--trace=AC_INIT:$1#$2')
version=${package#*#}
package=${package%#*}
hostname=${hostname-$(hostname)}
if [[ -x "scripts/reconfigure-${hostname}" ]]; then
reconfCmd="scripts/reconfigure-${hostname}"
......
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