File: preinst

package info (click to toggle)
phalanx 22-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 836 kB
  • ctags: 534
  • sloc: ansic: 6,877; sh: 79; makefile: 67
file content (20 lines) | stat: -rw-r--r-- 330 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e

LEARNFILE=/var/games/phalanx.learn
OLDLEARNFILE=/var/lib/games/phalanx.learn

# Move the learning file

if test -e $OLDLEARNFILE; then
  if test ! -e $LEARNFILE; then
    if test ! -d /var/games; then
      mkdir /var/games
      chmod 755 /var/games
    fi
    mv $OLDLEARNFILE $LEARNFILE
  fi
fi

#DEBHELPER#