File: uninstall.sh

package info (click to toggle)
golang-github-checkpoint-restore-checkpointctl 1.3.0%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 628 kB
  • sloc: ansic: 208; makefile: 172; sh: 40
file content (22 lines) | stat: -rwxr-xr-x 446 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
20
21
22
#!/bin/sh
# A test to make sure "make uninstall" works as intended.

set -e
SELFDIR=$(dirname $(readlink -f $0))
DESTDIR=$SELFDIR/test.install-$$
cd $SELFDIR/..

set -x
make install DESTDIR=$DESTDIR
make uninstall DESTDIR=$DESTDIR
set +x

# There should be no files left (directories are OK for now)
if [ $(find $DESTDIR -type f | wc -l) -gt 0 ]; then
	echo "Files left after uninstall:"
	find $DESTDIR -type f
	echo "FAIL"
	exit 1
fi

echo PASS