summaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-10-14 19:47:28 +0000
committersmatz <smatz@openttd.org>2008-10-14 19:47:28 +0000
commit14d8689e6675bfc8298ac5c81083149b801e10ec (patch)
tree6160f41a70c019286e46316b48c07992116676ed /projects
parenta999bb322775b80f44bfc6e0f1886851d4bfc410 (diff)
downloadopenttd-14d8689e6675bfc8298ac5c81083149b801e10ec.tar.xz
(svn r14467) -Fix [FS#2350](r14443): use '~' instead of '#' as sed separator, it could be understood in a wrong way by shell
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/generate4
1 files changed, 2 insertions, 2 deletions
diff --git a/projects/generate b/projects/generate
index 37cbc9b57..220eb3e77 100755
--- a/projects/generate
+++ b/projects/generate
@@ -56,7 +56,7 @@ safety_check() {
}
grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sort > tmp.headers.source.list
-find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s@$ROOT_DIR/src/@@" | sort > tmp.headers.src
+find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s~$ROOT_DIR/src/~~" | sort > tmp.headers.src
if [ -n "`diff tmp.headers.source.list tmp.headers.src`" ]; then
echo "The following headers are missing in source.list and not in /src/ or vice versa."
diff tmp.headers.source.list tmp.headers.src | grep '[<>]' | sort
@@ -138,7 +138,7 @@ load_lang_data() {
RES=""
for i in `ls $1`
do
- i=`basename $i | sed s/.txt$//g`
+ i=`basename $i | sed s~.txt$~~g`
RES="$RES
<File
RelativePath=\"..\\src\\lang\\"$i".txt\"