[system] / trunk / webwork / system / scripts / setProfPermissions.pl Repository:
ViewVC logotype

Diff of /trunk/webwork/system/scripts/setProfPermissions.pl

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

Revision 11 Revision 70
5# ################################################################## 5# ##################################################################
6# Copyright @ 1995-1999 University of Rochester 6# Copyright @ 1995-1999 University of Rochester
7# All Rights Reserved 7# All Rights Reserved
8# ################################################################## 8# ##################################################################
9 9
10BEGIN {
11 my $useLibDir = '.';
12 if ($0 =~ m|^(/.*)/|) { $useLibDir = $1; }
13 elsif ($0 =~ m|^(\..*)/|) { $useLibDir = $1; }
14 elsif ($0 =~ m|^(.+)/|) { $useLibDir = "./$1"; }
15 unshift @INC, $useLibDir;
16}
17
10use lib '.'; use webworkInit; # WeBWorKInitLine 18use webworkInit; # WeBWorKInitLine
11 19
12## setProfPermissions.pl takes as arguments the coursename and instructors login_name 20## setProfPermissions.pl takes as arguments the coursename and instructors login_name
13## e.g. setInstructorPermissions.pl demoCourse jsmith 21## e.g. setInstructorPermissions.pl demoCourse jsmith
14 22
15## NOTE: this should only be run by the professor 23## NOTE: this should only be run by the professor

Legend:
Removed from v.11  
changed lines
  Added in v.70

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9