File: vars.build

package info (click to toggle)
glib2.0 2.0.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,072 kB
  • ctags: 24
  • sloc: sh: 4,219; makefile: 254
file content (17 lines) | stat: -rw-r--r-- 290 bytes parent folder | download | duplicates (86)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

sed_cmd=''
cat $1 | while read REPLY; do
	case "$REPLY" in
		\#*|"")	continue;;
		*)
			var=$(echo $REPLY|sed 's/\([^=]*\)=.*/\1/')
			eval $REPLY
			if [ $2 = "make" ]; then
				eval echo "$var=\$$var"
			else
				eval echo "$var=\\\"\$$var\\\""
			fi
			;;
	esac
done