Mercurial > ~dholland > hg > ag > index.cgi
view mk/include-defs.sh @ 16:f9e4689b837d
Some minor updates for 15 years later.
author | David A. Holland |
---|---|
date | Tue, 31 May 2022 01:45:26 -0400 |
parents | 13d2b8934445 |
children |
line wrap: on
line source
#!/bin/sh # include-defs.sh - generate make defs for include path # usage: include-defs.sh 'incdirs' > rules.mk if [ $# != 1 ]; then echo "$0: usage: $0 'incdirs'" 1>&2 exit 1 fi INCDIRS="$1" INCFLAGS=`echo " " $INCDIRS | sed 's/ \([^ ]\)/ -I\1/g;s/^ *//'` echo "INCFLAGS=$INCFLAGS" WINDRES_INCFLAGS=`echo " " $INCDIRS | sed 's/ \([^ ]\)/ -i\1/g;s/^ *//'` echo "WINDRESFLAGS=$WINDRES_INCFLAGS"