4 function quiet { [[ $quiet == 1 ]]; }
6 if [[ "$1" == "-q" ]]; then
21 optarg=`expr "x$option" : 'x[^=]*=\(.*\)'`
25 prev=lemon_doc_prefix ;;
27 lemon_doc_prefix=$optarg ;;
33 -h, --help display this help and exit
34 --lemon-doc-prefix=loc The location of the lemon doc. By default it is
35 http://lemon.cs.elte.hu/pub/doc/1.0
38 $0 --lemon-doc-prefix=file://usr/local/share/doc/lemon/docs/
45 $0: unrecognized option: $option
46 Try \`$0 --help' for more information.
55 if test -z "$lemon_doc_prefix"
57 lemon_doc_prefix='http://lemon.cs.elte.hu/pub/doc/1.0'
59 lemon_doc_prefix=$(echo $lemon_doc_prefix|sed 's/\//\\\\\\\//g')
61 lemon_cflags=$(pkg-config --cflags lemon|sed 's/\//\\\//g')
62 lemon_libs=$(pkg-config --libs lemon|sed 's/\//\\\//g')
65 sed -e "s/@lemon_cflags@/${lemon_cflags}/g" \
66 -e "s/@lemon_libs@/${lemon_libs}/g" \
67 -e "s/@make_lemon_doc_prefix@/${lemon_doc_prefix}/g" \
68 < Makefile.in > Makefile