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
commitab00ea7393e12435556d55ab70f3cc2f9b34ac38 (patch)
tree6160f41a70c019286e46316b48c07992116676ed /projects
parente7bb5c63a4776701a0ac8e88facdaafe310d1af8 (diff)
downloadopenttd-ab00ea7393e12435556d55ab70f3cc2f9b34ac38.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\"