Skip to content

Commit 5654d4f

Browse files
autogen.sh: adding a script to generate the configure script
1 parent d30b612 commit 5654d4f

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

autogen.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/sh
2+
#
3+
# Run 'autoreconf -i' to generate 'configure', 'Makefile.in', etc.
4+
#
5+
# The first time this is run on a new cloned git repo the configure
6+
# script will not be present, only the configure.ac and
7+
# Makefile.am. The rest must be generated by `autoreconf -i`.
8+
#
9+
# If you are working with a distribution (file ending with ".tar.gz"
10+
# or similar) then this script should not be needed, and should not be
11+
# present, as all the files should already exist. You should only run
12+
# this script if you know what you are doing with autoreconf.
13+
#
14+
# This script will only work with an argument to confirm the help
15+
# message has been read.
16+
17+
runautoreconf() {
18+
autoreconf -i;
19+
}
20+
21+
if test -d .git && test "$(basename "${PWD}")" = "smithlab_cpp"
22+
then
23+
runautoreconf
24+
exit 0
25+
else
26+
echo " It seems you are either attempting to run this script "
27+
echo " from the wrong directory, or in a source tree that was "
28+
echo " not obtained by cloning the smithlab_cpp git repo. "
29+
echo " "
30+
echo " ./autogen.sh generates the configure script. Only run "
31+
echo " "
32+
echo " this if you know what you are doing with autoreconf and "
33+
echo " are simply avoiding doing that. If you just want to use "
34+
echo " the software, download a release and this script will "
35+
echo " not be needed. "
36+
exit 1
37+
fi

0 commit comments

Comments
 (0)