#! /bin/sh -e # zypper-build-dep: show my ignorance of zypper/.rpm # There is surely a better way to install build-deps. if test $# -eq 0 -o "$1" = '-h' -o "$1" = "--help"; then cat 1>&2 <&2 fi cd "$specdir" && grep -E '^(BuildRequires|BuildPrereq):' $specs \ | sed -e 's/[^:]*:[[:space:]]*//' \ -e 's/[[:space:]]*[<=>]\+[[:space:]][^[:space:]]\+//g' \ | tr ' ' '\n' \ | sort -u