File: insert_cflags.sh

package info (click to toggle)
dhcp3 3.0.4-13
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 4,356 kB
  • ctags: 5,192
  • sloc: ansic: 66,959; sh: 9,527; perl: 601; makefile: 158
file content (21 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh -x

# The things you have to do to get a bit of CFLAGS support...


if grep -q COPTS site.conf; then
	echo "site.conf has already been modified"
	case $1 in
		"unpatch")
			grep -v COPTS site.conf > /tmp/site.conf
			mv -f /tmp/site.conf site.conf
		;;
	esac
else
	echo "site.conf requires modification"
	case $1 in
		"patch")
			echo "COPTS = \$(BINDDEF) \$(CC_OPTIONS) $CFLAGS" >> site.conf
		;;
	esac
fi