[system] / trunk / wwmoodle / wwquestion / bin / setup / setup.pl Repository:
ViewVC logotype

Diff of /trunk/wwmoodle/wwquestion/bin/setup/setup.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 5501 Revision 5502
99if($files eq 'y') { 99if($files eq 'y') {
100 $doWhat = promptUser('Would you like me to copy the files or soft link them.(copy,link)','link'); 100 $doWhat = promptUser('Would you like me to copy the files or soft link them.(copy,link)','link');
101 if($doWhat eq 'link') { 101 if($doWhat eq 'link') {
102 $action = 'ln -sf '; 102 $action = 'ln -sf ';
103 } elsif ($doWhat eq 'copy') { 103 } elsif ($doWhat eq 'copy') {
104 print "Remember to rerun setup when/if you update from the CVS\n";
104 $action = 'cp -R '; 105 $action = 'cp -R ';
105 } else { 106 } else {
106 exit; 107 exit;
107 } 108 }
109 #wipe existing directories
110 system("rm -rf $moodleRoot/question/type/webwork");
111 system("rm -rf $moodleRoot/lang/en_utf8/help/webwork");
108 system($action . "$wwquestionRoot/moodle/question/type/webwork " .$moodleRoot . '/question/type/webwork'); 112 system($action . "$wwquestionRoot/moodle/question/type/webwork " .$moodleRoot . '/question/type/');
109 system($action . "$wwquestionRoot/moodle/lang/en_utf8/qtype_webwork.php " . $moodleRoot . '/lang/en_utf8/qtype_webwork.php'); 113 system($action . "$wwquestionRoot/moodle/lang/en_utf8/qtype_webwork.php " . $moodleRoot . '/lang/en_utf8/qtype_webwork.php');
110 system($action . "$wwquestionRoot/moodle/lang/en_utf8/help/quiz/webwork.html " . $moodleRoot . '/lang/en_utf8/help/quiz/webwork.html'); 114 system($action . "$wwquestionRoot/moodle/lang/en_utf8/help/quiz/webwork.html " . $moodleRoot . '/lang/en_utf8/help/quiz/webwork.html');
111 system($action . "$wwquestionRoot/moodle/lang/en_utf8/help/webwork " . $moodleRoot . '/lang/en_utf8/help/webwork'); 115 system($action . "$wwquestionRoot/moodle/lang/en_utf8/help/webwork " . $moodleRoot . '/lang/en_utf8/help/');
116
117 print "Setup Successful!\n";
112 118
113 119
114} 120}
115 121
1161; 1221;

Legend:
Removed from v.5501  
changed lines
  Added in v.5502

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9