diff options
Diffstat (limited to 'src/dmsversion.c')
| -rw-r--r-- | src/dmsversion.c | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/src/dmsversion.c b/src/dmsversion.c deleted file mode 100644 index ec00e50..0000000 --- a/src/dmsversion.c +++ /dev/null | |||
| @@ -1,128 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * DMS Tools and Utilities | ||
| 3 | * Copyright (C) 2010 David M. Syzdek <david@syzdek.net>. | ||
| 4 | * | ||
| 5 | * @SYZDEK_LICENSE_HEADER_START@ | ||
| 6 | * | ||
| 7 | * Redistribution and use in source and binary forms, with or without | ||
| 8 | * modification, are permitted provided that the following conditions are | ||
| 9 | * met: | ||
| 10 | * | ||
| 11 | * * Redistributions of source code must retain the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer. | ||
| 13 | * * Redistributions in binary form must reproduce the above copyright | ||
| 14 | * notice, this list of conditions and the following disclaimer in the | ||
| 15 | * documentation and/or other materials provided with the distribution. | ||
| 16 | * * Neither the name of David M. Syzdek nor the | ||
| 17 | * names of its contributors may be used to endorse or promote products | ||
| 18 | * derived from this software without specific prior written permission. | ||
| 19 | * | ||
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 21 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 22 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR | ||
| 24 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 25 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 26 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 27 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 28 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 29 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 30 | * SUCH DAMAGE. | ||
| 31 | * | ||
| 32 | * @SYZDEK_LICENSE_HEADER_END@ | ||
| 33 | */ | ||
| 34 | /** | ||
| 35 | * @file src/dmsversion.c displays library version | ||
| 36 | */ | ||
| 37 | /* | ||
| 38 | * Simple Build: | ||
| 39 | * gcc -W -Wall -O2 -c dmsversion.c | ||
| 40 | * gcc -W -Wall -O2 -o dmsversion dmsversion.o | ||
| 41 | * | ||
| 42 | * GNU Libtool Build: | ||
| 43 | * libtool --mode=compile gcc -W -Wall -g -O2 -c dmsversion.c | ||
| 44 | * libtool --mode=link gcc -W -Wall -g -O2 -o dmsversion dmsversion.lo | ||
| 45 | * | ||
| 46 | * GNU Libtool Install: | ||
| 47 | * libtool --mode=install install -c dmsversion /usr/local/bin/dmsversion | ||
| 48 | * | ||
| 49 | * GNU Libtool Clean: | ||
| 50 | * libtool --mode=clean rm -f dmsversion.lo dmsversion | ||
| 51 | */ | ||
| 52 | #define _DMS_SRC_DMSVERSION_C 1 | ||
| 53 | |||
| 54 | /////////////// | ||
| 55 | // // | ||
| 56 | // Headers // | ||
| 57 | // // | ||
| 58 | /////////////// | ||
| 59 | |||
| 60 | #ifdef HAVE_CONFIG_H | ||
| 61 | #include <config.h> | ||
| 62 | #endif | ||
| 63 | |||
| 64 | #include <stdio.h> | ||
| 65 | #include <dms.h> | ||
| 66 | |||
| 67 | |||
| 68 | /////////////////// | ||
| 69 | // // | ||
| 70 | // Definitions // | ||
| 71 | // // | ||
| 72 | /////////////////// | ||
| 73 | |||
| 74 | #ifndef PROGRAM_NAME | ||
| 75 | #define PROGRAM_NAME "dmsversion" | ||
| 76 | #endif | ||
| 77 | #ifndef PACKAGE_BUGREPORT | ||
| 78 | #define PACKAGE_BUGREPORT "david@syzdek.net" | ||
| 79 | #endif | ||
| 80 | #ifndef PACKAGE_COPYRIGHT | ||
| 81 | #define PACKAGE_COPYRIGHT "" | ||
| 82 | #endif | ||
| 83 | #ifndef PACKAGE_NAME | ||
| 84 | #define PACKAGE_NAME "" | ||
| 85 | #endif | ||
| 86 | #ifndef PACKAGE_VERSION | ||
| 87 | #define PACKAGE_VERSION "" | ||
| 88 | #endif | ||
| 89 | |||
| 90 | #ifndef PARAMS | ||
| 91 | #define PARAMS(protos) protos | ||
| 92 | #endif | ||
| 93 | |||
| 94 | |||
| 95 | ////////////////// | ||
| 96 | // // | ||
| 97 | // Prototypes // | ||
| 98 | // // | ||
| 99 | ////////////////// | ||
| 100 | |||
| 101 | // main statement | ||
| 102 | int main(int argc, char * argv[]); | ||
| 103 | |||
| 104 | |||
| 105 | ////////////////// | ||
| 106 | // // | ||
| 107 | // Prototypes // | ||
| 108 | // // | ||
| 109 | ////////////////// | ||
| 110 | |||
| 111 | /// main statement | ||
| 112 | /// @param[in] argc number of arguments | ||
| 113 | /// @param[in] argv array of arguments | ||
| 114 | int main(int argc, char * argv[]) | ||
| 115 | { | ||
| 116 | if (argc == -1) | ||
| 117 | printf("%s\n", argv[0]); | ||
| 118 | printf("%s (%s) %s\n", PROGRAM_NAME, PACKAGE_NAME, PACKAGE_VERSION); | ||
| 119 | printf("%s\n", dms_version()); | ||
| 120 | printf("Written by David M. Syzdek\n"); | ||
| 121 | printf("\n"); | ||
| 122 | printf("Copyright (C) 2010 David M. Syzdek\n"); | ||
| 123 | printf("This is free software; see the source for copying conditions. There is NO\n"); | ||
| 124 | printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); | ||
| 125 | return(0); | ||
| 126 | } | ||
| 127 | |||
| 128 | // end of source file | ||
