* bin2c.c: Remove internationalization and version report.

* Makefile.am: Update bin2c rule.
	* Makefile.in: Regenerate.
This commit is contained in:
Alan Modra
2010-11-05 10:50:59 +00:00
parent 2ee0aedfb8
commit 9b585a95b7
3 changed files with 9 additions and 23 deletions

View File

@ -273,8 +273,8 @@ sysinfo.@OBJEXT@: sysinfo.c
$(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
fi fi
bin2c$(EXEEXT_FOR_BUILD): $(LIBINTL_DEP) bin2c$(EXEEXT_FOR_BUILD): bin2c.c
$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c $(srcdir)/version.c $(LIBINTL) $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
embedspu: embedspu.sh embedspu: embedspu.sh
sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@ sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@

View File

@ -1225,8 +1225,8 @@ sysinfo.@OBJEXT@: sysinfo.c
$(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \ $(CC_FOR_BUILD) -c -I. $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(NO_WERROR) $(srcdir)/sysinfo.c ; \
fi fi
bin2c$(EXEEXT_FOR_BUILD): $(LIBINTL_DEP) bin2c$(EXEEXT_FOR_BUILD): bin2c.c
$(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c $(srcdir)/version.c $(LIBINTL) $(CC_FOR_BUILD) -o $@ $(AM_CPPFLAGS) $(AM_CFLAGS) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) $(srcdir)/bin2c.c
embedspu: embedspu.sh embedspu: embedspu.sh
sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@ sed "s@^program_transform_name=@program_transform_name=$(program_transform_name)@" < $< > $@

View File

@ -18,9 +18,9 @@
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */ 02110-1301, USA. */
#include "sysdep.h" #include <stdio.h>
#include "bfd.h" #include <stdlib.h>
#include "bucomm.h" #include "binary-io.h"
int int
main (int argc, char *argv[]) main (int argc, char *argv[])
@ -28,19 +28,9 @@ main (int argc, char *argv[])
int c; int c;
int i; int i;
#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES)
setlocale (LC_MESSAGES, "");
#endif
#if defined (HAVE_SETLOCALE)
setlocale (LC_CTYPE, "");
#endif
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
if (argc != 1) if (argc != 1)
{ {
int ishelp = 0; int ishelp = 0;
int isvers = 0;
FILE *stream; FILE *stream;
if (argc == 2 && argv[1][0] == '-') if (argc == 2 && argv[1][0] == '-')
@ -49,15 +39,11 @@ main (int argc, char *argv[])
if (*opt == '-') if (*opt == '-')
++opt; ++opt;
ishelp = *opt == 'h' || *opt == 'H'; ishelp = *opt == 'h' || *opt == 'H';
isvers = *opt == 'v' || *opt == 'V';
} }
if (isvers)
print_version ("bin2c");
stream = ishelp ? stdout : stderr; stream = ishelp ? stdout : stderr;
fprintf (stream, _("Usage: %s < input_file > output_file\n"), argv[0]); fprintf (stream, "Usage: %s < input_file > output_file\n", argv[0]);
fprintf (stream, _("Prints bytes from stdin in hex format.\n")); fprintf (stream, "Prints bytes from stdin in hex format.\n");
exit (!ishelp); exit (!ishelp);
} }