]> git.pld-linux.org Git - packages/adapter.git/commitdiff
- small wrapper for adapter.awk
authorjpc <jpc@pld-linux.org>
Thu, 13 May 2004 21:37:59 +0000 (21:37 +0000)
committerjpc <jpc@pld-linux.org>
Thu, 13 May 2004 21:37:59 +0000 (21:37 +0000)
  (I rarely adapterized my specs because it was painful!
   Until now... A new script has arrived!)
  I hope it will be useful.

Changed files:
    adapter.sh -> 1.1

adapter.sh [new file with mode: 0644]

diff --git a/adapter.sh b/adapter.sh
new file mode 100644 (file)
index 0000000..ccc18b7
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/zsh
+
+if [[ $# -ne 1 || ! -f $1 ]]; then
+  echo "Usage: $0 filename"
+  exit 1
+fi
+
+./adapter.awk "$1" > "$1.adapter"
+diff "$1" "$1.adapter"|less
+echo -n "Are the changes OK? [yN] "
+read -q OK
+if [[ $OK == "y" ]]; then
+  mv "$1.adapter" "$1"
+  cvs ci "$1"
+else
+  rm "$1.adapter"
+fi
This page took 0.029919 seconds and 4 git commands to generate.