Changeset 286
- Timestamp:
- Mar 9, 2009, 5:39:15 PM (16 years ago)
- Location:
- trunk/dasscm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dasscm/dasscm
r285 r286 33 33 my $RETURN_UNKNOWN = 3; 34 34 35 # file to store permissions36 my $permissions_file = "/etc/permissions.d/dasscm.permission_backup";37 35 38 36 # documentation file (for usage) … … 51 49 my $DASSCM_CHECKOUT_USERNAME; 52 50 my $DASSCM_CHECKOUT_PASSWORD; 51 my $DASSCM_PERMISSION_FILE; 53 52 54 53 # current directory at program start … … 786 785 my $retcode = 787 786 run_interactive( 788 "cd $DASSCM_LOCAL_REPOSITORY_BASE; $SVN checkout $svnCheckoutCredentials $svnOptions $DASSCM_SVN_REPOSITORY; mkdir -p `dirname $ permissions_file`; touch $permissions_file"787 "cd $DASSCM_LOCAL_REPOSITORY_BASE; $SVN checkout $svnCheckoutCredentials $svnOptions $DASSCM_SVN_REPOSITORY; mkdir -p `dirname $DASSCM_PERMISSION_FILE`; touch $DASSCM_PERMISSION_FILE" 789 788 ); 790 789 } … … 905 904 906 905 # add permissions file 907 add_helper($ permissions_file);906 add_helper($DASSCM_PERMISSION_FILE); 908 907 909 908 if ( $options{'message'} ) { … … 968 967 969 968 # add permissions file 970 add_helper($ permissions_file);969 add_helper($DASSCM_PERMISSION_FILE); 971 970 972 971 if ( $options{'message'} ) { … … 1154 1153 my $tofile = 0; # Status für schreiben in File 1155 1154 1156 if ( -w dirname($ permissions_file) ) {1155 if ( -w dirname($DASSCM_PERMISSION_FILE) ) { 1157 1156 1158 1157 # Verzeichnis existiert => schreiben 1159 open( OUTFILE, ">$ permissions_file" )1160 || die("failed to write to $ permissions_file: $!");1158 open( OUTFILE, ">$DASSCM_PERMISSION_FILE" ) 1159 || die("failed to write to $DASSCM_PERMISSION_FILE: $!"); 1161 1160 $tofile = 1; # Merken, daß in File geschrieben wird 1162 1161 print OUTFILE "#\n"; … … 1237 1236 " --username $DASSCM_CHECKOUT_USERNAME --password $DASSCM_CHECKOUT_PASSWORD "; 1238 1237 } 1238 1239 $DASSCM_PERMISSION_FILE = $config->{'DASSCM_PERMISSION_FILE'} || "/etc/permissions.d/dasscm.permission_backup"; 1239 1240 1240 1241 # get command line options and store them in options hash -
trunk/dasscm/dasscm.conf
r255 r286 32 32 #DASSCM_CHECKOUT_USERNAME=dasscm 33 33 #DASSCM_CHECKOUT_PASSWORD= 34 35 # 36 # file to store the permissions of the checked-in file 37 # 38 DASSCM_PERMISSION_FILE="/etc/permissions.d/dasscm.permission_backup"
Note:
See TracChangeset
for help on using the changeset viewer.