File: liquidwar.preinst

package info (click to toggle)
liquidwar 5.6.3-3.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,964 kB
  • ctags: 2,584
  • sloc: ansic: 25,365; xml: 4,001; sh: 3,053; makefile: 1,357; asm: 1,344; python: 537; php: 486; sql: 22
file content (15 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
#test -h /usr/share/doc/liquidwar && rm /usr/share/doc/liquidwar || /bin/true
# Whatever we had before, move all the cruft to the new directory and make
# space for the symlink

if [ ! -h /usr/share/doc/liquidwar ] ; then
   test -d /usr/share/doc/liquidwar-data || mkdir -p /usr/share/doc/liquidwar-data
   if [ "`echo /usr/share/doc/liquidwar/*`" != "/usr/share/doc/liquidwar/*" ] ; then
      mv -f /usr/share/doc/liquidwar/* /usr/share/doc/liquidwar-data/
   fi
fi

rm -rf /usr/share/doc/liquidwar

#DEBHELPER#