summaryrefslogtreecommitdiff
path: root/scripts/replace.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/replace.sh')
-rwxr-xr-xscripts/replace.sh25
1 files changed, 0 insertions, 25 deletions
diff --git a/scripts/replace.sh b/scripts/replace.sh
deleted file mode 100755
index 7912c72..0000000
--- a/scripts/replace.sh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-
-# '@' - this char is prohibited to use
-oldtext="$1"
-newtext="$2"
-
-GoThroughDir() {
- for D in $1*; do
- if [ -d $D ] && [ "$D" == "./.git" ]; then
- continue
- elif [ -d $D ] && [ "$D" == "./build" ]; then
- continue
- elif [ -d $D ]; then
- GoThroughDir $D/
- elif [ "$D" == "$0" ]; then
- continue
- else
- sed -i -e "s@$oldtext@$newtext@" $D
- fi
- done
-}
-
-GoThroughDir ./
-
-grep -iHr "$oldtext" ./ | grep -v .git/