diff --git a/projects/generate b/projects/generate --- 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