File: ppc

package info (click to toggle)
pearpc 0.3.1%2B1-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 5,004 kB
  • ctags: 10,086
  • sloc: cpp: 57,086; ansic: 8,780; sh: 5,930; asm: 1,939; lex: 321; makefile: 291; yacc: 195
file content (17 lines) | stat: -rw-r--r-- 347 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

prefix=/usr
exec_prefix=${prefix}
sysconfdir=/etc
conffile=ppc.conf

if [ -f ~/.${conffile} ]; then
	${exec_prefix}/bin/ppc.real ~/.${conffile}
elif [ -f ${sysconfdir}/${conffile} ]; then
	${exec_prefix}/bin/ppc.real ${sysconfdir}/${conffile}
else
	echo "ERROR: Config file not found! (/etc/${conffile} or ~/.${conffile})"
	exit 1
fi