File: preinst

package info (click to toggle)
aclock.app 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 904 kB
  • sloc: objc: 1,311; makefile: 23; sh: 9
file content (19 lines) | stat: -rw-r--r-- 399 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# Handle the move of arch-independent Resources to /usr/share as dpkg
# will not replace a real directory with a symlink.
# FIXME: Remove during the jessie+1 cycle.

set -e
set -u

RESDIR=/usr/lib/GNUstep/Applications/AClock.app/Resources

if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
    if [ -d $RESDIR ] && [ ! -L $RESDIR ]; then
	rm -rf $RESDIR
    fi
fi

#DEBHELPER#

exit 0