6 function quiet { [[ $quiet == 1 ]]; }
8 if [[ "$1" == "-q" ]]; then
23 optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
27 prev=lemon_doc_prefix ;;
29 lemon_doc_prefix=$optarg ;;
35 -h, --help display this help and exit
36 --lemon-doc-prefix=loc The location of the lemon doc. By default it is
37 http://lemon.cs.elte.hu/pub/doc/$LEMON_VERSION
40 $0 --lemon-doc-prefix=file://usr/local/share/doc/lemon/docs/
47 $0: unrecognized option: $option
48 Try \`$0 --help' for more information.
57 if test -z "$lemon_doc_prefix"
59 lemon_doc_prefix="http://lemon.cs.elte.hu/pub/doc/$LEMON_VERSION"
61 lemon_doc_prefix=$(echo $lemon_doc_prefix|sed 's/\//\\\\\\\//g')
63 lemon_cflags=$(pkg-config --cflags lemon|sed 's/\//\\\//g')
64 lemon_libs=$(pkg-config --libs lemon|sed 's/\//\\\//g')
67 sed -e "s/@lemon_cflags@/${lemon_cflags}/g" \
68 -e "s/@lemon_libs@/${lemon_libs}/g" \
69 -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \
70 -e "s/@LIBSTDCXX_VERSION@/${LIBSTDCXX_VERSION}/g" \
71 < Makefile.in > Makefile