Subversion リポジトリの参照
Diff of /aquaskk/trunk/platform/mac/proj/script/TransitionTask.rb
Parent Directory
| Revision Log
| Patch
33 |
end |
end |
34 |
|
|
35 |
def copy(src, dest) |
def copy(src, dest) |
36 |
if FileTest.exist?(src) then |
if File.exist?(src) then |
37 |
File.copy(src, dest) |
File.copy(src, dest) |
38 |
end |
end |
39 |
end |
end |
40 |
|
|
41 |
def safe_copy(src, dest) |
def safe_copy(src, dest) |
42 |
if !FileTest.exist?(dest) then |
if !File.exist?(dest) then |
43 |
copy(src, dest) |
copy(src, dest) |
44 |
end |
end |
45 |
end |
end |
46 |
|
|
47 |
def dict_copy(src, dest) |
def dict_copy(src, dest) |
48 |
if !FileTest.exist?(src) then |
if !File.exist?(src) then |
49 |
return |
return |
50 |
end |
end |
51 |
|
|
81 |
end |
end |
82 |
|
|
83 |
def task03 |
def task03 |
84 |
if FileTest.exist?(@work_settings.config) then |
if File.exist?(@work_settings.config) then |
85 |
translator = KeymapTranslator.new(@work_settings.config, @work_defaults) |
translator = KeymapTranslator.new(@work_settings.config, @work_defaults) |
86 |
|
|
87 |
translator.execute() |
translator.execute() |
91 |
end |
end |
92 |
|
|
93 |
def task04 |
def task04 |
94 |
if FileTest.exist?(@work_settings.dictionary_set) then |
if File.exist?(@work_settings.dictionary_set) then |
95 |
translator = DictionarySetTranslator.new(@work_settings.dictionary_set) |
translator = DictionarySetTranslator.new(@work_settings.dictionary_set) |
96 |
|
|
97 |
translator.execute() |
translator.execute() |
121 |
private_methods.sort.each { |task| |
private_methods.sort.each { |task| |
122 |
method(task).call if(task =~ /task/) |
method(task).call if(task =~ /task/) |
123 |
} |
} |
124 |
|
|
125 |
|
Dir.foreach(ConstVars::NEW_LIB_DIR) { |file| |
126 |
|
File.chown(Process.uid, Process.gid, |
127 |
|
ConstVars::NEW_LIB_DIR + '/' + file) |
128 |
|
} |
129 |
end |
end |
130 |
end |
end |
|
Legend:
Removed from v.25 |
|
changed lines |
|
Added in v.26 |
|
|
| |