VirtualBox

Changeset 1183 in kBuild for trunk/src/kmk/kmkbuiltin/md5sum.c


Ignore:
Timestamp:
Oct 5, 2007 10:16:46 PM (17 years ago)
Author:
bird
Message:

Added --version and --help to all builtins.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/md5sum.c

    r1125 r1183  
    6565            );
    6666    return 1;
    67 }
    68 
    69 
    70 /**
    71  * Prints the version string.
    72  * @returns 0
    73  */
    74 static int version(void)
    75 {
    76 #ifdef kmk_builtin_md5sum
    77     fprintf(stdout, "kmk_md5sum (kBuild) %d.%d.%d\n"
    78                     "Copyright (c) 2007 knut st. osmundsen\n",
    79             KBUILD_VERSION_MAJOR, KBUILD_VERSION_MINOR, KBUILD_VERSION_PATCH);
    80 #else
    81     fprintf(stdout, "kmk_builtin_md5sum (kBuild) %d.%d.%d\n"
    82                     "Copyright (c) 2007 knut st. osmundsen\n",
    83             KBUILD_VERSION_MAJOR, KBUILD_VERSION_MINOR, KBUILD_VERSION_PATCH);
    84 #endif
    85     return 0;
    8667}
    8768
     
    713694
    714695                    case 'v':
    715                         return version();
     696                        return kbuild_version(argv[0]);
    716697
    717698                    /*
     
    761742}
    762743
    763 
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette