Changeset 2146 for swish-e/trunk/buildswishe.pl
- Timestamp:
- 06/27/08 11:23:41 (6 months ago)
- Files:
-
- swish-e/trunk/buildswishe.pl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/trunk/buildswishe.pl
r1854 r2146 86 86 # 0.12 Sat Nov 11 14:58:26 CST 2006 87 87 # fixed swish-e get src to respect explicit opt path 88 # 89 # 0.13 Fri Jun 27 10:18:42 CDT 2008 90 # change from CVS to SVN (only a year+ late...) 88 91 # 89 92 ################################################################################ … … 102 105 use FindBin qw( $Bin ); 103 106 104 my $Version = '0.1 2';107 my $Version = '0.13'; 105 108 106 109 my %URLs = ( … … 120 123 ); 121 124 122 my $swish_ cvs = ':pserver:anonymous@swishe.cvs.sourceforge.net:/cvsroot/swishe';123 my $ cvs_cmd = "cvs -q -d$swish_cvs co swish-e";125 my $swish_svn = 'http://svn.swish-e.org/swish-e/trunk'; 126 my $svn_cmd = "svn -q co "; 124 127 125 128 my $defdir = '/usr/local/swish-e/latest'; … … 133 136 134 137 'quiet' => "run non-interactively", 135 ' cvs' => "use latest CVSversion of Swish-e",138 'svn' => "use latest Subversion trunk version of Swish-e", 136 139 'swish-e=s' => 137 140 "use <X> as Swish-e source -- either URL, tar.gz or directory", … … 1296 1299 1297 1300 # --swishe trumps all 1298 # else if we've specified -- cvs, download latest.1301 # else if we've specified --svn, download latest. 1299 1302 # else check if script was run from a src dir. 1300 1303 # if all else fails, use the get_src() function to locate it. … … 1303 1306 print "we're in " . `pwd` if $opts->{debug}; 1304 1307 1305 if ($opts->{ cvs})1306 { 1307 1308 # get latest cvssource and set dir1308 if ($opts->{svn}) 1309 { 1310 1311 # get latest svn source and set dir 1309 1312 1310 1313 chdir($tmpdir) or die "can't chdir $tmpdir: $!\n"; … … 1315 1318 1316 1319 chdir('swish-e') or die "can't chdir swish-e: $!\n"; 1317 $ cvs_cmd =~ s/co swish-e/update -dP/;1318 } 1319 1320 system( $cvs_cmd);1320 $svn_cmd =~ s/co /update /; 1321 } 1322 1323 system("$svn_cmd $swish_svn swish-e"); 1321 1324 $swishdir = "$tmpdir/swish-e"; 1322 1325
