1 2 3 4 5 6 7 8 9 10 11
#!/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