Changeset 2104 in kBuild
- Timestamp:
- Nov 26, 2008 1:52:53 AM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kDepPre/kDepPre.c
r2019 r2104 465 465 if (!i) 466 466 { 467 depOptimize(fFixCase );467 depOptimize(fFixCase, 0 /* fQuiet */); 468 468 fprintf(pOutput, "%s:", pszTarget); 469 469 depPrint(pOutput); -
trunk/src/kmk/kmkbuiltin/kDepIDB.c
r2019 r2104 780 780 static void usage(const char *argv0) 781 781 { 782 printf("usage: %s -o <output> -t <target> [-f ] [-s] <vc idb-file>\n"782 printf("usage: %s -o <output> -t <target> [-fqs] <vc idb-file>\n" 783 783 " or: %s --help\n" 784 784 " or: %s --version\n", … … 800 800 /* Argument parsing. */ 801 801 int fInput = 0; /* set when we've found input argument. */ 802 int fQuiet = 0; 802 803 803 804 argv0 = argv[0]; … … 818 819 if (*psz == '-') 819 820 { 820 if (!strcmp(psz, "-help")) 821 if (!strcmp(psz, "-quiet")) 822 psz = "q"; 823 else if (!strcmp(psz, "-help")) 821 824 psz = "?"; 822 825 else if (!strcmp(psz, "-version")) 823 psz = " v";826 psz = "V"; 824 827 } 825 828 … … 891 894 892 895 /* 896 * Quiet. 897 */ 898 case 'q': 899 { 900 fQuiet = 1; 901 break; 902 } 903 904 /* 893 905 * Generate stubs. 894 906 */ … … 905 917 usage(argv[0]); 906 918 return 0; 919 case 'V': 907 920 case 'v': 908 921 return kbuild_version(argv[0]); … … 972 985 if (!i) 973 986 { 974 depOptimize(fFixCase );987 depOptimize(fFixCase, fQuiet); 975 988 fprintf(pOutput, "%s:", pszTarget); 976 989 depPrint(pOutput); -
trunk/src/lib/kDep.c
r2019 r2104 170 170 * 'Optimizes' and corrects the dependencies. 171 171 */ 172 void depOptimize(int fFixCase )172 void depOptimize(int fFixCase, int fQuiet) 173 173 { 174 174 /* … … 226 226 if (stat(pszFilename, &s)) 227 227 { 228 fprintf(stderr, "kDep: Skipping '%s' - %s!\n", pszFilename, strerror(errno)); 228 if ( !fQuiet 229 || errno != ENOENT 230 || ( pszFilename[0] != '/' 231 && pszFilename[0] != '\\' 232 && ( !isalpha(pszFilename[0]) 233 || pszFilename[1] != ':' 234 || ( pszFilename[2] != '/' 235 && pszFilename[2] != '\\'))) 236 ) 237 fprintf(stderr, "kDep: Skipping '%s' - %s!\n", pszFilename, strerror(errno)); 229 238 continue; 230 239 } -
trunk/src/lib/kDep.h
r2019 r2104 42 42 43 43 extern PDEP depAdd(const char *pszFilename, size_t cchFilename); 44 extern void depOptimize(int fFixCase );44 extern void depOptimize(int fFixCase, int fQuiet); 45 45 extern void depPrint(FILE *pOutput); 46 46 extern void depPrintStubs(FILE *pOutput);
Note:
See TracChangeset
for help on using the changeset viewer.