Merge branch 'ab/i18n-scripts-basic'
authorJunio C Hamano <gitster@pobox.com>
Fri, 17 Jun 2011 18:40:32 +0000 (11:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 Jun 2011 18:40:32 +0000 (11:40 -0700)
* ab/i18n-scripts-basic:
sh-i18n--envsubst.c: do not #include getopt.h

1  2 
sh-i18n--envsubst.c
diff --combined sh-i18n--envsubst.c
index 2eb0ee44b87a08750e3789ff9132d55a6abd96f9,1153f8c47d37ec8001f75421572e98e6686fb566..9d2e971a275ede8a1365b2a2737452a873586707
@@@ -51,7 -51,6 +51,6 @@@
     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
  
  #include <errno.h>
- #include <getopt.h>
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
@@@ -68,7 -67,7 +67,7 @@@ in
  main (int argc, char *argv[])
  {
    /* Default values for command line options.  */
 -  unsigned short int show_variables = 0;
 +  /* unsigned short int show_variables = 0; */
  
    switch (argc)
        {
@@@ -88,7 -87,7 +87,7 @@@
          /* git sh-i18n--envsubst --variables '$foo and $bar' */
          if (strcmp(argv[1], "--variables"))
                error ("first argument must be --variables when two are given");
 -        show_variables = 1;
 +        /* show_variables = 1; */
        print_variables (argv[2]);
          break;
        default: