mirror of
https://github.com/jordansissel/fpm
synced 2025-08-30 04:10:42 +02:00
21 lines
353 B
Bash
21 lines
353 B
Bash
#!/bin/bash
|
|
|
|
run() {
|
|
mkdir -p $tmpdir/{a,b,c}/{d,e,f}
|
|
touch $tmpdir/a/hello
|
|
touch $tmpdir/a/d/hello
|
|
touch $tmpdir/c/d/hello
|
|
|
|
fpm -s dir -t rpm -n testing -a all $tmpdir
|
|
|
|
file=testing-1.0-1.noarch.rpm
|
|
rpm -qlp $file > $output
|
|
sed -e "s,TMPDIR,$(basename $tmpdir)," $expected.template > $expected
|
|
|
|
rm $file
|
|
}
|
|
|
|
clean() {
|
|
rm $expected
|
|
}
|