-
Notifications
You must be signed in to change notification settings - Fork 5
/
autogen.sh
executable file
·37 lines (35 loc) · 1.61 KB
/
autogen.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh
#
# Run 'autoreconf -i' to generate 'configure', 'Makefile.in', etc.,
# including in the smithlab_cpp (a git submodule) subdirectory.
#
# The first time this is run on a new cloned git repo the configure
# script will not be present, only the configure.ac and
# Makefile.am. The rest must be generated by `autoreconf -i` and this
# must happen in the `src/smithlab_cpp`. Running `autoreconf -i` is
# not guaranteed to move recursively.
#
# If you are working with a distribution (file ending with ".tar.gz"
# or similar) then this script should not be needed, and should not be
# present, as all the files should already exist. You should only run
# this script if you know what you are doing with autoreconf.
runautoreconf() {
autoreconf -i src/smithlab_cpp && autoreconf -i .;
}
if test -d .git && test "$(basename "${PWD}")" = "abismal"
then
runautoreconf
exit 0
else
echo " It seems you are either attempting to run this script "
echo " from the wrong directory, or in a source tree that was "
echo " not obtained by cloning the abismal git repo. "
echo " "
echo " ./autogen.sh generates the configure script in the "
echo " relevant subdirectories. Only run this if you know "
echo " what you are doing with autoreconf and are simply "
echo " avoiding doing that. If you just want to use the "
echo " software, download a release and this script will "
echo " not be needed. "
exit 1
fi