]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - adapter.sh
- preserve R/P/S order
[packages/rpm-build-tools.git] / adapter.sh
index 23913317cf8bfc3dbe9cf5117785d21e6fbea7df..4a90576f89f10d73507f111b3c3ad3bba18e8574 100644 (file)
@@ -34,6 +34,11 @@ if [ ! -x /usr/bin/getopt ]; then
        exit 1
 fi
 
+if [ ! -x /usr/bin/patch ]; then
+       echo >&1 "You need to install patch to use adapter"
+       exit 1
+fi
+
 t=`getopt -o hsmda --long help,sort,sort-br,no-macros,skip-macros,skip-desc,skip-defattr -n "$self" -- "$@"` || exit $?
 eval set -- "$t"
 
@@ -128,7 +133,7 @@ adapterize()
 {
         local tmpdir
         tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/adapter-XXXXXX) || exit
-        awk -f adapter.awk $SPECFILE > $tmpdir/$SPECFILE || exit
+        gawk -f adapter.awk $SPECFILE > $tmpdir/$SPECFILE || exit
 
         if [ "`diff --brief $SPECFILE $tmpdir/$SPECFILE`" ]; then
                  diff -u $SPECFILE $tmpdir/$SPECFILE > $tmpdir/$SPECFILE.diff
This page took 0.035723 seconds and 4 git commands to generate.