Changeset 191
- Timestamp:
- Jan 21, 2018, 2:39:09 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/project-meta/project-meta
r190 r191 138 138 } 139 139 140 print "chmod o+rX,o-w $current_dir\n";141 print "mkdir -p $dap_folder/$acronym\n" if not -d "$dap_folder/$acronym";140 print "chmod o+rX,o-w '$current_dir'\n"; 141 print "mkdir -p '$dap_folder/$acronym'\n" if not -d "$dap_folder/$acronym"; 142 142 for my $folder (sort keys %folders) { 143 print "chmod o+rX,o-w $current_dir/$folder\n";144 print "mkdir -p $dap_folder/$acronym/$folder\n" if -d "$current_dir/$folder";143 print "chmod o+rX,o-w '$current_dir/$folder'\n"; 144 print "mkdir -p '$dap_folder/$acronym/$folder'\n" if -d "$current_dir/$folder"; 145 145 } 146 146 … … 149 149 # Folder case 150 150 my $folder = $dataset =~ s{/[^/]+$}{}r; 151 print "ln --symbolic --target-directory $dap_folder/$acronym/$folder/ $current_dir/$dataset\n";151 print "ln --symbolic --target-directory '$dap_folder/$acronym/$folder/' '$current_dir/$dataset'\n"; 152 152 } 153 153 else { 154 154 # File case 155 print "ln --symbolic --target-directory $dap_folder/$acronym/ $current_dir/$dataset\n";156 } 157 158 } 159 print "chmod -R o+rX,o-w $dap_folder/$acronym/\n";155 print "ln --symbolic --target-directory '$dap_folder/$acronym/' '$current_dir/$dataset'\n"; 156 } 157 158 } 159 print "chmod -R o+rX,o-w '$dap_folder/$acronym/'\n"; 160 160 } 161 161
Note: See TracChangeset
for help on using the changeset viewer.