File: vars.build

package info (click to toggle)
gtk%2B2.0 2.8.20-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 18,988 kB
  • ctags: 52
  • sloc: makefile: 426; sh: 363
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