Changeset 4047 in genesis
- Timestamp:
- Mar 13, 2005, 11:59:57 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/g_list.pl
r4025 r4047 4 4 # 5 5 6 $home="/home/ wcl/wcl_html/genesis";6 $home="/home/genesis/"; 7 7 $ndir="$home/nodes"; 8 8 $html=1; 9 $source='http://www.wleiden.net/cgi-bin/g_list.pl'; 9 $baseref='http://rambo.wleiden.net'; 10 $base_href="baseref/cgi-bin"; 11 $source="$base_href/g_list.pl"; 10 12 $svn='/usr/local/bin/svn'; 11 $toolfile= '/home/wcl/wcl_html/genesis/tools/wleiden.pl';13 $toolfile="wleiden.pl"; 12 14 13 15 $functions_only=1;do $toolfile || die; … … 36 38 <TITLE>Genesis $title</TITLE> 37 39 <BODY BGcolor=white> 38 <BASE HREF= http://www.wleiden.net/cgi-bin/>40 <BASE HREF=$base_href> 39 41 EOH 40 42 } … … 52 54 53 55 print "<H2>Please wait while updating svn...</H2><P><PRE>\n"; 54 system("$svn update /home/wcl/wcl_html/genesis");56 system("$svn update $ndir"); 55 57 close(SVN); 56 58 print <<EOZ; 57 59 </PRE> 58 60 <H2>Done.<H2><P> 59 Click <A HREF= g_list.pl>here</A> if you're not forwarded automaticly in 561 Click <A HREF=$source>here</A> if you're not forwarded automaticly in 5 60 62 seconds.<P> 61 <META HTTP-EQUIV=REFRESH CONTENT=5;URL= g_list.pl>\n63 <META HTTP-EQUIV=REFRESH CONTENT=5;URL=$source>\n 62 64 EOZ 63 65 … … 101 103 if ($HTML) 102 104 { 103 $svn_version=svn_version(" /home/wcl/wcl_html/genesis");105 $svn_version=svn_version("$ndir"); 104 106 if ($svn_version=~/Last Changed Rev: (\d+)/) {$revision=$1;} 105 107 106 108 print "<H1>Genesis config (revision: $revision):</H1><P>\n<PRE>"; 107 109 print $svn_version; 108 print "</PRE><TABLE BORDER=1>\n"; 110 print <<EOX; 111 </PRE> 112 <FORM METHOD=get ACTION=g_list.pl> 113 <INPUT TYPE="submit" NAME="Update" VALUE="Update"> 114 </FORM> 115 <TABLE BORDER=1> 116 EOX 109 117 } 110 118 … … 131 139 print <<EOX; 132 140 </TABLE><P> 133 <FORM METHOD=get ACTION=g_list.pl>134 <INPUT TYPE="submit" NAME="Update" VALUE="Update">135 </FORM>136 141 EOX 137 142 }
Note:
See TracChangeset
for help on using the changeset viewer.