File: install-score.in

package info (click to toggle)
bsdgames 2.5-4
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,412 kB
  • ctags: 4,665
  • sloc: ansic: 59,763; sh: 643; yacc: 327; lex: 79; makefile: 53; sed: 13; csh: 5
file content (13 lines) | stat: -rwxr-xr-x 283 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
# install-score.in - install a score file

set -e

scorefile="@install_prefix@$1"

mkdir -p "$(dirname "$scorefile")"

test -e "$scorefile" || touch "$scorefile"
if [ @do_chown@ = y ]; then
    chown @vardata_owner@.@vardata_group@ "$scorefile"
fi
chmod @vardata_perms@ "$scorefile"