bug-zile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-zile] Renaming commands


From: Reuben Thomas
Subject: [Bug-zile] Renaming commands
Date: Mon, 10 Sep 2012 02:03:18 +0100

Another handy script:

#!/bin/sh
# Rename a Zee command
old=$1
new=$2
find . -name "*~" -delete
rgrep -l $1 src | xargs rep "s/\"$1\"/\"$2\"/"
rgrep -l $1 tests | xargs rep "s/$1/$2/"
mmv "tests/$1.*" "tests/$2.#1"
mmv "tests/interactive/$1.*" "tests/interactive/$2.#1"
mmv "tests/regression/$1.*" "tests/regression/$2.#1"
mmv "tests/zile-only/$1.*" "tests/zile-only/$2.#1"
mmv "tests/zile-only/fixed-screen/$1.*" "tests/zile-only/fixed-screen/$2.#1"
mmv "tests/zile-only/interactive/$1.*" "tests/zile-only/interactive/$2.#1"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]