File: preinst

package info (click to toggle)
yard 1.17.patch1-5
  • links: PTS
  • area: main
  • in suites: potato
  • size: 600 kB
  • ctags: 74
  • sloc: perl: 1,729; sh: 250; makefile: 176; asm: 32
file content (16 lines) | stat: -rw-r--r-- 351 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

YARDBIN="/usr/share/yard"
YARDBINBACK="/usr/share/yard.off"

# move away the old binaries
# in case the new installation was a success it will be deleted
# in case of an error it will be restored to its previous state
if [ -e  $YARDBIN ]; then
	if [ -e $YARDBINBACK ]; then
		rm -rf $YARDBINBACK
	fi
	mv -f $YARDBIN $YARDBINBACK
fi