From: jpc Date: Thu, 13 May 2004 22:18:42 +0000 (+0000) Subject: - "ported" from zsh to bash ;) X-Git-Tag: auto/ac/rpm-4_3-0_20040107_29~18 X-Git-Url: http://git.pld-linux.org/?a=commitdiff_plain;h=e932137613e9a308ee7ce7995873d1800129f5d4;p=packages%2Frpm-build-tools.git - "ported" from zsh to bash ;) - make context (-urN) diffs (how could I forgot) Changed files: adapter.sh -> 1.2 --- diff --git a/adapter.sh b/adapter.sh index ccc18b7..8835101 100644 --- a/adapter.sh +++ b/adapter.sh @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/bin/bash if [[ $# -ne 1 || ! -f $1 ]]; then echo "Usage: $0 filename" @@ -6,10 +6,12 @@ if [[ $# -ne 1 || ! -f $1 ]]; then fi ./adapter.awk "$1" > "$1.adapter" -diff "$1" "$1.adapter"|less +diff -urN "$1" "$1.adapter"|less echo -n "Are the changes OK? [yN] " -read -q OK -if [[ $OK == "y" ]]; then + +read -n 1 OK + +if [[ $OK == "y" || $OK == "Y" ]]; then mv "$1.adapter" "$1" cvs ci "$1" else