-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·57 lines (47 loc) · 1.09 KB
/
build.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# help wanted?
case $1 in
--help|-h)
./configure --help
exit 0
;;
esac
echo
echo "Building ugrep-indexer..."
# configure with the specified command arguments
echo
echo "./configure $@"
echo
# appease automake when the original timestamps are lost, when using git clone
touch aclocal.m4 Makefile.am src/Makefile.am
sleep 1
touch config.h.in Makefile.in src/Makefile.in
sleep 1
touch configure
if ! ./configure "$@" ; then
echo "Failed to complete ./configure $@"
echo "See config.log for more details"
exit 1
fi
echo
echo "make -j clean all"
echo
make clean
if ! make -j ; then
echo "Failed to build ugrep-indexer: please run the following two commands:"
echo "$ autoreconf -fi"
echo "$ ./build.sh"
echo
echo "If that does not work, please open an issue at:"
echo "https://github.com/Genivia/ugrep-indexer/issues"
exit 1
fi
echo
echo "ugrep-indexer was successfully built in $(pwd)/bin:"
ls -l bin/ugrep-indexer
echo
echo "Copy bin/ugrep-indexer to a bin/ on your PATH"
echo
echo "Or install the ugrep-indexer utility on your system by executing:"
echo "sudo make install"
echo