Skip to content

Commit

Permalink
fix: update version in configure.ac
Browse files Browse the repository at this point in the history
  • Loading branch information
PixmaHestiia committed Nov 6, 2023
1 parent c4bf92f commit ceb829e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
bs_dir=$(cd "$(dirname "$0")"; pwd)

./update_configure_ac_version.sh
../update_configure_ac_version.sh

autoreconf -fi "${bs_dir}"

Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_maj], [5])
m4_define([v_min], [0])
m4_define([v_mic], [4])
m4_define([v_min], [1])
m4_define([v_mic], [1])
##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##--##
m4_define([v_ver], [v_maj.v_min.v_mic])
m4_define([lt_rev], m4_eval(v_maj + v_min))
Expand Down
8 changes: 4 additions & 4 deletions update_configure_ac_version.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/bash

# Read version
version=$(cat version.txt)
version=$(cat ../version.txt)
maj=$(echo $version | cut -d. -f1)
min=$(echo $version | cut -d. -f2)
mic=$(echo $version | cut -d. -f3)

# Update configure.ac
sed -i "s/m4_define(\[v_maj\], \[[0-9]*\])/m4_define([v_maj], [$maj])/g" configure.ac
sed -i "s/m4_define(\[v_min\], \[[0-9]*\])/m4_define([v_min], [$min])/g" configure.ac
sed -i "s/m4_define(\[v_mic\], \[[0-9]*\])/m4_define([v_mic], [$mic])/g" configure.ac
sed -i "s/m4_define(\[v_maj\], \[[0-9]*\])/m4_define([v_maj], [$maj])/g" ../configure.ac
sed -i "s/m4_define(\[v_min\], \[[0-9]*\])/m4_define([v_min], [$min])/g" ../configure.ac
sed -i "s/m4_define(\[v_mic\], \[[0-9]*\])/m4_define([v_mic], [$mic])/g" ../configure.ac

echo "configure.ac updated with version $version"

0 comments on commit ceb829e

Please sign in to comment.