Changeset 760
- Timestamp:
- 08/12/07 03:31:02 (1 year ago)
- Files:
-
- trunk/docs/ChangeLog (modified) (1 diff)
- trunk/sss/conf.d (modified) (2 diffs)
- trunk/sss/install.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docs/ChangeLog
r759 r760 5 5 - Added 'binstall' subcommand (see ticket #105). 6 6 - Added 'noinstall' setting (see ticket #106). 7 - `dsss install` now installs .di files in libraries (see ticket #92). 7 8 8 9 0.70 from 0.69: trunk/sss/conf.d
r756 r760 757 757 758 758 /** Get a list of files from a target */ 759 char[][] targetToFiles(char[] target, DSSSConf conf )759 char[][] targetToFiles(char[] target, DSSSConf conf, bool includeDi = false) 760 760 in { 761 761 assert(target in conf.settings); … … 806 806 // make this the full path 807 807 file = ndir ~ std.path.sep ~ file; 808 809 // get the extension 810 char[] ext = std.string.tolower(getExt(file)).dup; 808 811 809 812 if (isdir(file)) { 810 813 // perhaps recurse 811 814 addDir(file); 812 } else if (std.string.tolower(getExt(file)) == "d") { 815 816 } else if (ext == "d") { 813 817 // or just add it 814 818 if (!excluded(file)) { 819 files ~= file; 820 } 821 822 } else if (ext == "di") { 823 // only add .di files if we should 824 if (includeDi) { 815 825 files ~= file; 816 826 } trunk/sss/install.d
r759 r760 143 143 } 144 144 145 // 2) generate.di files146 char[][] srcFiles = targetToFiles(build, conf );145 // 2) install generated .di files 146 char[][] srcFiles = targetToFiles(build, conf, true); 147 147 foreach (file; srcFiles) { 148 // install the .di file 149 copyAndManifest(getBaseName(file ~ "i"), 150 includePrefix ~ std.path.sep ~ getDirName(file), 151 "dsss_imports" ~ std.path.sep ~ getDirName(file) ~ std.path.sep); 148 // if it's already a .di file, this is simpler 149 if (std.string.tolower(getExt(file)) == "di") { 150 copyAndManifest(getBaseName(file), 151 includePrefix ~ std.path.sep ~ getDirName(file), 152 getDirName(file) ~ std.path.sep); 153 154 } else { 155 // install the generated .di file 156 copyAndManifest(getBaseName(file ~ "i"), 157 includePrefix ~ std.path.sep ~ getDirName(file), 158 "dsss_imports" ~ std.path.sep ~ getDirName(file) ~ std.path.sep); 159 } 152 160 } 153 161 … … 165 173 (type == "library" && !libsSafe())) { 166 174 // also fairly easy 167 char[][] srcFiles = targetToFiles(build, conf );175 char[][] srcFiles = targetToFiles(build, conf, true); 168 176 foreach (file; srcFiles) { 169 177 char[] fdir = getDirName(file);
