comparison mk/include-defs.sh @ 0:13d2b8934445

Import AnaGram (near-)release tree into Mercurial.
author David A. Holland
date Sat, 22 Dec 2007 17:52:45 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:13d2b8934445
1 #!/bin/sh
2 # include-defs.sh - generate make defs for include path
3 # usage: include-defs.sh 'incdirs' > rules.mk
4
5 if [ $# != 1 ]; then
6 echo "$0: usage: $0 'incdirs'" 1>&2
7 exit 1
8 fi
9
10 INCDIRS="$1"
11
12 INCFLAGS=`echo " " $INCDIRS | sed 's/ \([^ ]\)/ -I\1/g;s/^ *//'`
13 echo "INCFLAGS=$INCFLAGS"
14
15 WINDRES_INCFLAGS=`echo " " $INCDIRS | sed 's/ \([^ ]\)/ -i\1/g;s/^ *//'`
16 echo "WINDRESFLAGS=$WINDRES_INCFLAGS"