git.p6c8.net
/
jirafeau.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Translated INSTALL_FILE_NOT_FOUND_TITLE and INSTALL_FILE_NOT_FOUND_DESC to German
[jirafeau.git]
/
lib
/
locales
/
rename.sh
1
#!/bin/bash
2
original_id
=
$1
3
new_id
=
$2
4
if
[
-z
"
$original_id
"
]
||
[
-z
"
$new_id
"
] ;
then
5
echo
"arguments: [OLD_ID] [NEW_ID]"
6
exit
1
7
fi
8
locales_dir
=
$
(
cd
"$(dirname
$0
)"
&&
pwd
)
9
o
=
"
\"
$original_id
\"
:"
10
i
=
"
\"
$new_id
\"
:"
11
find
.
-type
f
-name
"*.json"
-print0
|
xargs
-0
sed
-i
"s/
$o
/
$i
/g"
12
patrick-canterino.de