]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- "ported" from zsh to bash ;)
authorjpc <jpc@pld-linux.org>
Thu, 13 May 2004 22:18:42 +0000 (22:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- make context (-urN) diffs (how could I forgot)

Changed files:
    adapter.sh -> 1.2

adapter.sh

index ccc18b790f0f3a5fe603621e2bc58e0f31bb41d1..88351019cc9ef826f962b32f339db7229c11a05d 100644 (file)
@@ -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
This page took 0.027041 seconds and 4 git commands to generate.