darktable: fix builds on macOS (#372522)
[NixPkgs.git] / pkgs / by-name / rp / rpmextract / rpmextract.sh
blob6ebfa251955d489c8e702f8ceb0533d37ef8ccdc
1 #!@shell@ -e
3 if [ "$1" = "" ]; then
4 echo "usage: rpmextract package_name..." 1>&2
5 exit 1
6 fi
8 for i in "$@"; do
9 @rpm@/bin/rpm2cpio "$i" | @cpio@/bin/cpio -idv
10 done