File: makemake.sh

package info (click to toggle)
ugrep 3.11.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,196 kB
  • sloc: cpp: 50,724; ansic: 1,267; sh: 1,237; makefile: 107; xml: 6; java: 6
file content (22 lines) | stat: -rwxr-xr-x 614 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# if RE/flex was installed below this directory, then copy its files
if [ -d ../reflex ]; then
echo "Copying updated RE/flex source code files..."
cp -r ../reflex/include/reflex/*.h include/reflex
cp -r ../reflex/unicode/*.cpp lib
cp -r ../reflex/lib/*.cpp lib
cp -r ../reflex/fuzzy/fuzzymatcher.h include/reflex
fi

# change lib/Makefile.am to use noinst_LIBRARIES
sed -i .bak 's/lib_LIBRARIES/noinst_LIBRARIES/' lib/Makefile.am
rm -f lib/Makefile.am.bak

# run autoconf and automake stuff with maintainer mode disabled
aclocal
autoheader
automake --add-missing --foreign
autoconf
automake
./configure