mirror of https://github.com/OpenTTD/OpenTTD
(svn r27588) [1.6] -Backport from trunk:
- Fix: [Build] Force sorting to be locale independent, so files are always ordered the same and by that token better diff-able (r27562, r27558) - Fix: Typos in comments and string (r27561, r27560) - Fix: [Build] bashism that caused different CFLAGS with bash vs dash (r27557)release/1.6
parent
df885ee66c
commit
476c55ed3f
|
@ -84,7 +84,7 @@ endif
|
||||||
$(Q)cp "$(BIN_DIR)/scripts/"* "$(BUNDLE_DIR)/scripts/"
|
$(Q)cp "$(BIN_DIR)/scripts/"* "$(BUNDLE_DIR)/scripts/"
|
||||||
ifdef MENU_DIR
|
ifdef MENU_DIR
|
||||||
$(Q)cp "$(ROOT_DIR)/media/openttd.desktop" "$(BUNDLE_DIR)/media/"
|
$(Q)cp "$(ROOT_DIR)/media/openttd.desktop" "$(BUNDLE_DIR)/media/"
|
||||||
$(Q)$(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.translation.awk" "$(SRC_DIR)/lang/"*.txt | $(SORT) | $(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.filter.awk" >> "$(BUNDLE_DIR)/media/openttd.desktop"
|
$(Q)$(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.translation.awk" "$(SRC_DIR)/lang/"*.txt | LC_ALL=C $(SORT) | $(AWK) -f "$(ROOT_DIR)/media/openttd.desktop.filter.awk" >> "$(BUNDLE_DIR)/media/openttd.desktop"
|
||||||
$(Q)sed s/=openttd/=$(BINARY_NAME)/g "$(BUNDLE_DIR)/media/openttd.desktop" > "$(ROOT_DIR)/media/openttd.desktop.install"
|
$(Q)sed s/=openttd/=$(BINARY_NAME)/g "$(BUNDLE_DIR)/media/openttd.desktop" > "$(ROOT_DIR)/media/openttd.desktop.install"
|
||||||
endif
|
endif
|
||||||
ifeq ($(TTD), openttd.exe)
|
ifeq ($(TTD), openttd.exe)
|
||||||
|
|
|
@ -210,7 +210,7 @@ endif
|
||||||
{ \
|
{ \
|
||||||
print $$0 \
|
print $$0 \
|
||||||
} \
|
} \
|
||||||
' < Makefile.dep.tmp | sed 's@ *@ @g;s@ $$@@' | $(SORT) > Makefile.dep
|
' < Makefile.dep.tmp | sed 's@ *@ @g;s@ $$@@' | LC_ALL=C $(SORT) > Makefile.dep
|
||||||
|
|
||||||
$(Q)rm -f Makefile.dep.tmp Makefile.dep.tmp.bak
|
$(Q)rm -f Makefile.dep.tmp Makefile.dep.tmp.bak
|
||||||
|
|
||||||
|
|
|
@ -1490,7 +1490,7 @@ make_cflags_and_ldflags() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $enable_debug -le 2 ]; then
|
if [ $enable_debug -le 2 ]; then
|
||||||
cc_host_is_gcc=`basename "$cc_host" | grep "gcc" &>/dev/null`
|
cc_host_is_gcc=`basename "$cc_host" | grep "gcc" 2>/dev/null`
|
||||||
if [ -n "$cc_host_is_gcc" ]; then
|
if [ -n "$cc_host_is_gcc" ]; then
|
||||||
# Define only when compiling with GCC. Some GLIBC versions use GNU
|
# Define only when compiling with GCC. Some GLIBC versions use GNU
|
||||||
# extensions in a way that breaks build with at least ICC.
|
# extensions in a way that breaks build with at least ICC.
|
||||||
|
@ -1498,7 +1498,7 @@ make_cflags_and_ldflags() {
|
||||||
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
|
CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cc_build_is_gcc=`basename "$cc_build" | grep "gcc" &>/dev/null`
|
cc_build_is_gcc=`basename "$cc_build" | grep "gcc" 2>/dev/null`
|
||||||
if [ -n "$cc_build_is_gcc" ]; then
|
if [ -n "$cc_build_is_gcc" ]; then
|
||||||
# Just add -O1 to the tools needed for building.
|
# Just add -O1 to the tools needed for building.
|
||||||
CFLAGS_BUILD="$CFLAGS_BUILD -D_FORTIFY_SOURCE=2 -O1"
|
CFLAGS_BUILD="$CFLAGS_BUILD -D_FORTIFY_SOURCE=2 -O1"
|
||||||
|
|
|
@ -149,7 +149,7 @@ AWKCOMMAND='
|
||||||
|
|
||||||
# Read the source.list and process it
|
# Read the source.list and process it
|
||||||
# Please escape ALL " within ` because e.g. "" terminates the string in some sh implementations
|
# Please escape ALL " within ` because e.g. "" terminates the string in some sh implementations
|
||||||
SRCS="`< $ROOT_DIR/source.list tr '\r' '\n' | $awk \"$AWKCOMMAND\" | $PIPE_SORT`"
|
SRCS="`< $ROOT_DIR/source.list tr '\r' '\n' | $awk \"$AWKCOMMAND\" | LC_ALL=C $PIPE_SORT`"
|
||||||
|
|
||||||
OBJS_C="` echo \"$SRCS\" | $awk ' { ORS = \" \" } /\.c$/ { gsub(\".c$\", \".o\", $0); print $0; }'`"
|
OBJS_C="` echo \"$SRCS\" | $awk ' { ORS = \" \" } /\.c$/ { gsub(\".c$\", \".o\", $0); print $0; }'`"
|
||||||
OBJS_CPP="`echo \"$SRCS\" | $awk ' { ORS = \" \" } /\.cpp$/ { gsub(\".cpp$\", \".o\", $0); print $0; }'`"
|
OBJS_CPP="`echo \"$SRCS\" | $awk ' { ORS = \" \" } /\.cpp$/ { gsub(\".cpp$\", \".o\", $0); print $0; }'`"
|
||||||
|
|
|
@ -119,10 +119,10 @@ static SQInteger _sqstd_aux_printerror(HSQUIRRELVM v)
|
||||||
const SQChar *sErr = 0;
|
const SQChar *sErr = 0;
|
||||||
if(sq_gettop(v)>=1) {
|
if(sq_gettop(v)>=1) {
|
||||||
if(SQ_SUCCEEDED(sq_getstring(v,2,&sErr))) {
|
if(SQ_SUCCEEDED(sq_getstring(v,2,&sErr))) {
|
||||||
pf(v,"\nAN ERROR HAS OCCURED [%s]\n",sErr);
|
pf(v,"\nAN ERROR HAS OCCURRED [%s]\n",sErr);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
pf(v,"\nAN ERROR HAS OCCURED [unknown]\n");
|
pf(v,"\nAN ERROR HAS OCCURRED [unknown]\n");
|
||||||
}
|
}
|
||||||
sqstd_printcallstack(v);
|
sqstd_printcallstack(v);
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,7 +105,7 @@ void SQVM::Raise_IdxError(const SQObject &o)
|
||||||
void SQVM::Raise_CompareError(const SQObject &o1, const SQObject &o2)
|
void SQVM::Raise_CompareError(const SQObject &o1, const SQObject &o2)
|
||||||
{
|
{
|
||||||
SQObjectPtr oval1 = PrintObjVal(o1), oval2 = PrintObjVal(o2);
|
SQObjectPtr oval1 = PrintObjVal(o1), oval2 = PrintObjVal(o2);
|
||||||
Raise_Error("comparsion between '%.50s' and '%.50s'", _stringval(oval1), _stringval(oval2));
|
Raise_Error("comparison between '%.50s' and '%.50s'", _stringval(oval1), _stringval(oval2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -603,7 +603,7 @@ TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID str
|
||||||
/**
|
/**
|
||||||
* Update vehicle loading indicators.
|
* Update vehicle loading indicators.
|
||||||
* @param te_id TextEffectID to be updated.
|
* @param te_id TextEffectID to be updated.
|
||||||
* @param string String wich is printed.
|
* @param string String which is printed.
|
||||||
*/
|
*/
|
||||||
void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID string)
|
void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID string)
|
||||||
{
|
{
|
||||||
|
|
|
@ -3010,7 +3010,7 @@ static ChangeInfoResult SoundEffectChangeInfo(uint sid, int numinfo, int prop, B
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sid + numinfo - ORIGINAL_SAMPLE_COUNT > _cur.grffile->num_sounds) {
|
if (sid + numinfo - ORIGINAL_SAMPLE_COUNT > _cur.grffile->num_sounds) {
|
||||||
grfmsg(1, "SoundEffectChangeInfo: Attemting to change undefined sound effect (%u), max (%u). Ignoring.", sid + numinfo, ORIGINAL_SAMPLE_COUNT + _cur.grffile->num_sounds);
|
grfmsg(1, "SoundEffectChangeInfo: Attempting to change undefined sound effect (%u), max (%u). Ignoring.", sid + numinfo, ORIGINAL_SAMPLE_COUNT + _cur.grffile->num_sounds);
|
||||||
return CIR_INVALID_ID;
|
return CIR_INVALID_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -101,7 +101,7 @@ static void UpdateElement(StoryPageElement &pe, TileIndex tile, uint32 reference
|
||||||
* @param p1 various bitstuffed elements
|
* @param p1 various bitstuffed elements
|
||||||
* - p1 = (bit 0 - 7) - Company for which this story page belongs to.
|
* - p1 = (bit 0 - 7) - Company for which this story page belongs to.
|
||||||
* @param p2 unused.
|
* @param p2 unused.
|
||||||
* @param text Title of the story page. Null is allowed in wich case a generic page title is provided by OpenTTD.
|
* @param text Title of the story page. Null is allowed in which case a generic page title is provided by OpenTTD.
|
||||||
* @return the cost of this operation or an error
|
* @return the cost of this operation or an error
|
||||||
*/
|
*/
|
||||||
CommandCost CmdCreateStoryPage(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
CommandCost CmdCreateStoryPage(TileIndex tile, DoCommandFlag flags, uint32 p1, uint32 p2, const char *text)
|
||||||
|
|
Loading…
Reference in New Issue