Skip to content

Commit 9b944bc

Browse files
wlammendigama0
andauthored
fix missing directory, improve comments (#45)
* fix missing directory, improve comments * Update build/build.sh Co-authored-by: Mario Carneiro <[email protected]> * simplify comment Co-authored-by: Mario Carneiro <[email protected]>
1 parent 97df633 commit 9b944bc

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ configure.ac2
2424
*~8
2525
*~9
2626
# Doxygen related: configuration file and destination folder
27-
doc/doxy
2827
Doxyfile
28+
doc/doxy

build/build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ find $BUILDDIR/* -not -name 'build.sh' -delete
1515
#========= symlink files to the build directory ==============
1616

1717
cp --symbolic-link $SRCDIR/* $BUILDDIR
18-
mv $BUILDDIR/configure.ac configure.ac.orig
18+
mv $BUILDDIR/configure.ac $BUILDDIR/configure.ac.orig
1919

2020
#========= patch the version in configure.ac ===================
2121

@@ -25,11 +25,13 @@ VERSION=`grep '[[:space:]]*#[[:space:]]*define[[:space:]]*MVERSION[[:space:]]"[^
2525
# extract the version (without quotes) from the saved line
2626
VERSION=`echo $VERSION | sed 's/[^"]*"\([^"]*\)"/\1/'`
2727

28-
# find the line with the AC_INIT command, prepend the line number at the beginning
29-
AC_INIT_LINE=`grep -n '[[:space:]]*AC_INIT[[:space:]]*(.*' $BUILDDIR/configure.ac.orig`
28+
# find the line with the AC_INIT command, prepend the line number
29+
# line-nr:AC_INIT([FULL-PACKAGE-NAME], [VERSION], [REPORT-ADDRESS])
30+
AC_INIT_LINE=`grep -n '[[:space:]]*AC_INIT[[:space:]]*(.*' $BUILDDIR/configure.ac.orig`
3031
AC_INIT_LINE_NR=`echo $AC_INIT_LINE | sed 's/\([0-9]*\).*/\1/'`
31-
# remove the line number
32+
# AC_INIT([FULL-PACKAGE-NAME], [VERSION], [REPORT-ADDRESS])
3233
AC_INIT_LINE=`echo $AC_INIT_LINE | sed 's/[0-9]:\(.*\)/\1/'`
34+
# replace the second parameter to AC_INIT
3335
PATCHED_INIT_LINE=`echo $AC_INIT_LINE | sed "s/\\([[:space:]]*AC_INIT(.*\\),.*,\\(.*\\)/\\1, \[$VERSION\],\\2/"`
3436

3537
# replace the AC_INIT line with new content

0 commit comments

Comments
 (0)