File: lua5.1-policy-apply

package info (click to toggle)
lua5.1-policy 6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 120 kB
  • ctags: 6
  • sloc: sh: 70; ansic: 41; makefile: 33
file content (32 lines) | stat: -rwxr-xr-x 962 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/sh

POLICYDIR=/usr/share/lua5.1-policy-dev/
TEMPLATES="Makefile.Debian.single Makefile.Debian.multiple app.c app.c.conf.in pkg-config.pc.in"
STAMPFILE=lua5.1-policy-apply-stamp

if [ -e $STAMPFILE ]; then
	echo $0: info: lua5.1-policy-apply already called here! 
	exit 0
fi

if [ "`echo debian/*Makefile.Debian.conf`" = 'debian/*Makefile.Debian.conf' ]; then
	echo $0: error: 'debian/Makefile.Debian.conf' missing
	echo $0: error: See
	echo $0: error:   /usr/share/lua5.1-policy-dev/Makefile.Debian.conf.sample 
	echo $0: error: for a sample file.
	echo $0: info: You can use the lua5.1-policy-create-svnbuildpackage-layout
	echo $0: info: utility to create a debian package.
	exit 1
fi

for X in $TEMPLATES; do
	if [ -e $X ]; then
		echo $0: warning: overwriting $X
	fi
	cp $POLICYDIR/$X .
	echo $0: info: adding $X
done
ln -s Makefile.Debian.multiple Makefile.Debian
echo "$0: info: adding Makefile.Debian -> Makefile.Debian.multiple"

touch $STAMPFILE