File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments