26 |
--help) echo "Usage: sh reconf.sh [--configure|--make|--install]" |
--help) echo "Usage: sh reconf.sh [--configure|--make|--install]" |
27 |
exit 0;; |
exit 0;; |
28 |
esac |
esac |
29 |
prog='autoreconf flex gperf perl' # required programs |
prog='autoreconf flex gperf perl bison' # required programs |
30 |
file='convert.pl configure.ac Makefile.am gctags/reserved.pl' # required files |
file='convert.pl configure.ac Makefile.am gctags/reserved.pl' # required files |
31 |
|
|
32 |
echo "- File existent checking..." |
echo "- File existent checking..." |
60 |
|
|
61 |
# |
# |
62 |
# We should do this before packaging so that user can build it without |
# We should do this before packaging so that user can build it without |
63 |
# flex and gperf. |
# flex, bison and gperf. |
64 |
# |
# |
65 |
echo "- Preparing parser source ..." |
echo "- Preparing parser source ..." |
66 |
(cd gctags; set -x |
(cd gctags; set -x |
74 |
if [ -f $lang.l ]; then |
if [ -f $lang.l ]; then |
75 |
flex -o$lang.c $lang.l |
flex -o$lang.c $lang.l |
76 |
fi |
fi |
77 |
|
if [ -f ${lang}_scan.l ]; then |
78 |
|
flex -o${lang}_scan.c ${lang}_scan.l |
79 |
|
fi |
80 |
|
if [ -f ${lang}_parse.y ]; then |
81 |
|
bison -d -o ${lang}_parse.c ${lang}_parse.y |
82 |
|
fi |
83 |
done |
done |
84 |
) |
) |
85 |
(cd htags; set -x |
(cd htags; set -x |