projects/generate
changeset 10239 cf55a4c21e7f
parent 9052 7a9d869484f2
child 10377 7fd36921d42f
equal deleted inserted replaced
10238:5076964d81a1 10239:cf55a4c21e7f
    54 		li="$i"
    54 		li="$i"
    55 	done
    55 	done
    56 }
    56 }
    57 
    57 
    58 grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sort > tmp.headers.source.list
    58 grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sort > tmp.headers.source.list
    59 find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s@$ROOT_DIR/src/@@" | sort > tmp.headers.src
    59 find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s~$ROOT_DIR/src/~~" | sort > tmp.headers.src
    60 if [ -n "`diff tmp.headers.source.list tmp.headers.src`" ]; then
    60 if [ -n "`diff tmp.headers.source.list tmp.headers.src`" ]; then
    61 	echo "The following headers are missing in source.list and not in /src/ or vice versa."
    61 	echo "The following headers are missing in source.list and not in /src/ or vice versa."
    62 	diff tmp.headers.source.list tmp.headers.src | grep '[<>]' | sort
    62 	diff tmp.headers.source.list tmp.headers.src | grep '[<>]' | sort
    63 	echo ""
    63 	echo ""
    64 fi
    64 fi
   136 
   136 
   137 load_lang_data() {
   137 load_lang_data() {
   138 	RES=""
   138 	RES=""
   139 	for i in `ls $1`
   139 	for i in `ls $1`
   140 	do
   140 	do
   141 		i=`basename $i | sed s/.txt$//g`
   141 		i=`basename $i | sed s~.txt$~~g`
   142 		RES="$RES
   142 		RES="$RES
   143 		<File
   143 		<File
   144 			RelativePath=\"..\\src\\lang\\"$i".txt\"
   144 			RelativePath=\"..\\src\\lang\\"$i".txt\"
   145 			>
   145 			>
   146 			<FileConfiguration
   146 			<FileConfiguration