mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-07-08 01:45:08 +00:00
Converted teststrings into a tool
Monotone-Parent: ae0c0cd3dbc947562a3dbd28f513f46bcd28a5b4 Monotone-Revision: f6ec5191473f90384de5c3301569150128a2ae63 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2011-10-07T15:27:41 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,19 +1,8 @@
|
||||
PROGRAM=teststrings
|
||||
|
||||
SRCS=teststrings.m
|
||||
OBJS=$(SRCS:.m=.o)
|
||||
|
||||
teststrings: $(OBJS)
|
||||
$(CC) -o $@ $< $(GNUSTEP_LIBRARIES_FLAGS) -lgnustep-base -L../../SoObjects/SOGo/SOGo.framework -lSOGo -lobjc
|
||||
|
||||
include $(GNUSTEP_MAKEFILES)/common.make
|
||||
|
||||
all: $(PROGRAM)
|
||||
TOOL_NAME = teststrings
|
||||
teststrings_OBJC_FILES += \
|
||||
teststrings.m
|
||||
|
||||
clean:
|
||||
rm -f $(PROGRAM) $(OBJS) *~
|
||||
|
||||
.m.o:
|
||||
$(CC) -o $@ -c $(GNUSTEP_HEADERS_FLAGS) $(AUXILIARY_OBJCFLAGS) $(OBJCFLAGS) $(CPPFLAGS) -I../../SoObjects $<
|
||||
|
||||
.SUFFIXES: .m .o
|
||||
-include GNUmakefile.preamble
|
||||
include $(GNUSTEP_MAKEFILES)/tool.make
|
||||
|
||||
@@ -5,12 +5,12 @@ RC=0
|
||||
|
||||
if [ ! -f teststrings ]
|
||||
then
|
||||
make teststrings
|
||||
make
|
||||
fi
|
||||
|
||||
for stringfile in ${TOPDIR}/*/*/*.lproj/Localizable.strings
|
||||
do
|
||||
./teststrings "$stringfile" > /dev/null
|
||||
./obj/teststrings "$stringfile" > /dev/null
|
||||
code=$?
|
||||
if test $code -eq 0;
|
||||
then
|
||||
|
||||
Reference in New Issue
Block a user