12 lines
159 B
Bash
Executable File
12 lines
159 B
Bash
Executable File
#!/bin/sh
|
|
|
|
rpm=${rpm:=rpm}
|
|
destdir="`pwd`"
|
|
destdir="`dirname $destdir`"
|
|
|
|
$rpm -e -vv hello | \
|
|
sed -e "s,$destdir,,g" > $0.out
|
|
|
|
diff $0.out $0.exp || exit 1
|
|
|