Changeset 552
- Timestamp:
- 02/14/09 00:51:26 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
interpreter/trunk/modules/System/package/builder.kt
r551 r552 55 55 property custom_post_install_rules 56 56 /[Custom install rules (post-install).]/, 57 property custom_pre_clean_rules 58 /[Custom install rules (pre-clean).]/, 59 property custom_post_clean_rules 60 /[Custom install rules (post-clean).]/, 57 61 property module_depends 58 62 /[Modules that libraries depend on.]/, … … 70 74 this.custom_pre_install_rules = []; 71 75 this.custom_post_install_rules = []; 76 this.custom_pre_clean_rules = []; 77 this.custom_post_clean_rules = []; 72 78 ] 73 79 ]; … … 89 95 [ 90 96 # Simple Kite file. Copy to dist folder. 91 run_command_with_echo("cp %s dist/%s"|format([lib_file, lib|replace(".", "/")]));97 run_command_with_echo("cp -f %s dist/%s"|format([lib_file, lib|replace(".", "/")])); 92 98 null; 93 99 return; … … 96 102 [ 97 103 # C++ file. 98 run_command_with_echo("%s %s %s -c %s"|format([ 104 run_command_with_echo("if [ \! \( -e %s \) -o \( %s -nt %s \) ]; then %s %s %s -c %s; fi"|format([ 105 (make System.regex("\\..+?$"))|replace(lib_file, ".o"), 106 lib_file, 107 (make System.regex("\\..+?$"))|replace(lib_file, ".o"), 99 108 System.compile_options.build_cplusplus, 100 109 System.compile_options.build_cxxflags, … … 104 113 true [ 105 114 # C file. 106 run_command_with_echo("%s %s %s -c %s"|format([ 115 run_command_with_echo("if [ \! \( -e %s \) -o \( %s -nt %s \) ]; then %s %s %s -c %s; fi"|format([ 116 (make System.regex("\\..+?$"))|replace(lib_file, ".o"), 117 lib_file, 118 (make System.regex("\\..+?$"))|replace(lib_file, ".o"), 107 119 System.compile_options.build_cc, 108 120 System.compile_options.build_cxxflags, … … 255 267 [ 256 268 process_builder_custom_rules(options, options.custom_pre_install_rules); 257 run_command_with_echo("cp - R dist/* %s"|format([System.compile_options.build_install_dir]));269 run_command_with_echo("cp -fR dist/* %s"|format([System.compile_options.build_install_dir])); 258 270 process_builder_custom_rules(options, options.custom_post_install_rules); 259 271 ]; … … 273 285 (os_args|count > 1 and os_args[1] == "clean") 274 286 [ 287 process_builder_custom_rules(options, options.custom_pre_clean_rules); 275 288 run_command_with_echo("rm -rf dist/"); 289 run_command_with_echo("rm -rf *.o"); 290 process_builder_custom_rules(options, options.custom_post_clean_rules); 276 291 ], 277 292 (os_args|count > 1 and os_args[1] == "install")
Note: See TracChangeset
for help on using the changeset viewer.
