Workaround around the Turkish language.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2658 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- Unix build scripts now work under LC_CTYPE=tr_TR - SvdB
|
||||||
- Flush write buffer when doing a uio_fclose() after doing only
|
- Flush write buffer when doing a uio_fclose() after doing only
|
||||||
uio_fwrite() operations. - SvdB
|
uio_fwrite() operations. - SvdB
|
||||||
- Major rewrite of the SwapBuffers commands -- screen compositing logic
|
- Major rewrite of the SwapBuffers commands -- screen compositing logic
|
||||||
|
|||||||
@@ -636,7 +636,10 @@ EOF
|
|||||||
# Arguments: $1 - the name of the symbol
|
# Arguments: $1 - the name of the symbol
|
||||||
define_have_symbol() {
|
define_have_symbol() {
|
||||||
local NAME VALUE
|
local NAME VALUE
|
||||||
NAME=`$TR "[:lower:]" "[:upper:]" << EOF
|
|
||||||
|
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
|
||||||
|
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
|
||||||
|
NAME=`$TR "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
|
||||||
$1
|
$1
|
||||||
EOF
|
EOF
|
||||||
`
|
`
|
||||||
@@ -655,7 +658,10 @@ EOF
|
|||||||
# Arguments: $1 - the name of the symbol
|
# Arguments: $1 - the name of the symbol
|
||||||
define_have_type() {
|
define_have_type() {
|
||||||
local NAME VALUE
|
local NAME VALUE
|
||||||
NAME=`$TR "[:lower:]" "[:upper:]" << EOF
|
|
||||||
|
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
|
||||||
|
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
|
||||||
|
NAME=`$TR "abcdefghijklmnopqrstuvwxyz" "ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
|
||||||
$1
|
$1
|
||||||
EOF
|
EOF
|
||||||
`
|
`
|
||||||
@@ -698,7 +704,10 @@ EOF
|
|||||||
# Arguments: $1 - the name of the header file
|
# Arguments: $1 - the name of the header file
|
||||||
define_have_header() {
|
define_have_header() {
|
||||||
local NAME VALUE
|
local NAME VALUE
|
||||||
NAME=`$TR /.[:lower:] __[:upper:] << EOF
|
|
||||||
|
# Why not "tr [:lower:] [:upper:]"? Because the capital "i" is not
|
||||||
|
# "I" in Turkish... An alternative would be setting LC_CTYPE to POSIX.
|
||||||
|
NAME=`$TR "/.abcdefghijklmnopqrstuvwxyz" "__ABCDEFGHIJKLMNOPQRSTUVWXYZ" << EOF
|
||||||
$1
|
$1
|
||||||
EOF
|
EOF
|
||||||
`
|
`
|
||||||
@@ -913,7 +922,7 @@ substitute_vars() {
|
|||||||
for VAR in $VARS; do
|
for VAR in $VARS; do
|
||||||
# Escape all / in VAR so that we can use / as seperator char for sed
|
# Escape all / in VAR so that we can use / as seperator char for sed
|
||||||
eval VALUE=\"\$$VAR\"
|
eval VALUE=\"\$$VAR\"
|
||||||
VALUE=$(echo "$VALUE" | $SED 's,\([\&/]\),\\\1,g')
|
VALUE=$(echo "$VALUE" | $SED -e 's,\([\&/]\),\\\1,g')
|
||||||
cat << EOF
|
cat << EOF
|
||||||
s/@${VAR}@/${VALUE}/g
|
s/@${VAR}@/${VALUE}/g
|
||||||
EOF
|
EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user