version 1.9, 2004/07/06 18:09:41
|
version 1.11, 2012/01/28 23:16:27
|
Line 1
|
Line 1
|
#!/usr/bin/perl |
#!/usr/bin/perl |
|
|
|
# $Id$ |
|
|
=pod |
=pod |
|
|
=head1 NAME |
=head1 NAME |
Line 50 with perl.
|
Line 52 with perl.
|
# the "make tardist" command. But instead, unstable is now defined as |
# the "make tardist" command. But instead, unstable is now defined as |
# "all the gunk we have been working on", whereas the |
# "all the gunk we have been working on", whereas the |
# "make tardist" command means a "carefully inventoried selection of gunk". |
# "make tardist" command means a "carefully inventoried selection of gunk". |
#`cd /home/loninst/auto; export CVS_PASSFILE=/home/loninst/.cvspass; export CVSROOT=:pserver:scott\@localhost:/home/cvs; rm -Rf loncapa/[C][^V]*; rm -Rf loncapa/[^C]*; cvs -Q co loncapa; cd loncapa/loncom/build; make build 2>/dev/null; make tardist;`; |
#`cd /home/loninst/auto; export CVS_RSH=ssh; export CVSROOT=:ext:loninst\@source.lon-capa.org:/home/cvs; rm -Rf loncapa/[C][^V]*; rm -Rf loncapa/[^C]*; cvs -Q co loncapa; cd loncapa/loncom/build; make build 2>/dev/null; make tardist;`; |
|
|
# The real world. Just give them all the gunk for the unstable distribution. |
# The real world. Just give them all the gunk for the unstable distribution. |
`cd /home/loninst/auto; export CVS_PASSFILE=/home/loninst/.cvspass; export CVSROOT=:pserver:scott\@localhost:/home/cvs; rm -Rf loncapa-unstable; rm -Rf loncapa; cvs -Q export -r HEAD loncapa;`; |
`cd /home/loninst/auto; export CVS_RSH=ssh; export CVSROOT=:ext:loninst\@source.lon-capa.org:/home/cvs; rm -Rf loncapa-unstable; rm -Rf loncapa; cvs -Q co -r HEAD loncapa; cd /home/loninst/auto/loncapa; cvs -Q co -r HEAD modules/TexConvert/tthperl/compiles; cvs -Q co -r HEAD modules/TexConvert/tthperl/commands; cp -p loncom/xml/tth.pm modules/TexConvert/tthperl/tth.pm; `; |
|
|
# Generate a README file that advises them about dealing with the gunk. |
# Generate a README file that advises them about dealing with the gunk. |
open(OUT,'>/home/loninst/auto/loncapa/README'); |
open(OUT,'>/home/loninst/auto/loncapa/README'); |
Line 66 print(OUT <<END);
|
Line 68 print(OUT <<END);
|
To generate an installable tarball distribution from this file, you can |
To generate an installable tarball distribution from this file, you can |
execute the following commands: |
execute the following commands: |
cd loncom/build |
cd loncom/build |
|
make build |
make tardist |
make tardist |
|
|
Note that the installable tarball distribution (the 'tardist' target) |
Note that the installable tarball distribution (the 'tardist' target) |
Line 80 cd loncom/build
|
Line 83 cd loncom/build
|
make build |
make build |
make install |
make install |
|
|
|
In this case you will be need to create symbolic links for the following |
|
in loncom (unless you have done this previously): |
|
|
|
hosts.tab |
|
domain.tab |
|
dns_hosts.tab |
|
dns_domain.tab |
|
|
|
which will point at development_hosts.tab, development_domain.tab, |
|
development_dns_hosts.tab, and development_dns_domain.tab respectively |
|
in loncom. |
|
|
For more information on Makefile targets, you can just enter the following |
For more information on Makefile targets, you can just enter the following |
commands: |
commands: |
cd loncom/build |
cd loncom/build |
Line 107 system("rm /home/loninst/public_html/*ht
|
Line 122 system("rm /home/loninst/public_html/*ht
|
#`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`; |
#`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`; |
|
|
`cd /home/loninst/auto/loncapa/loncom/build; make buildwebsite`; |
`cd /home/loninst/auto/loncapa/loncom/build; make buildwebsite`; |
|
system("cp /home/loninst/auto/loncapa/doc/build/*.html /home/loninst/public_html/"); |
|
|
# ------------------------------------ Copying over the latest unstable tarball |
# ------------------------------------ Copying over the latest unstable tarball |
#my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`; |
#my $filename=`cd /home/loninst/auto; find loncapa -type f -name *.tar.gz -maxdepth 1`; |
Line 126 my $releasedate = <IN>;
|
Line 142 my $releasedate = <IN>;
|
close(IN); |
close(IN); |
|
|
# ------------------ Updating the download page with the date of the last build |
# ------------------ Updating the download page with the date of the last build |
open(IN,"</home/loninst/public_html/docs/downloads/index.html"); |
open(IN,"</home/loninst/public_html/index.html"); |
my @lines = <IN>; |
my @lines = <IN>; |
close(IN); |
close(IN); |
my $date = `date -I`; chomp($date); |
my $date = `date -I`; chomp($date); |
Line 134 my $text = join('',@lines);
|
Line 150 my $text = join('',@lines);
|
$text =~ s/loncapa-unstable\.tar\.gz\<\/a\>.*?\./loncapa-unstable\.tar\.gz\<\/a\> (generated $date)\./; |
$text =~ s/loncapa-unstable\.tar\.gz\<\/a\>.*?\./loncapa-unstable\.tar\.gz\<\/a\> (generated $date)\./; |
$text =~ s/LATESTVERSION/$version/g; |
$text =~ s/LATESTVERSION/$version/g; |
$text =~ s/LATESTDATE/$releasedate/g; |
$text =~ s/LATESTDATE/$releasedate/g; |
open(OUT,">/home/loninst/public_html/docs/downloads/index.html"); |
open(OUT,">/home/loninst/public_html/index.html"); |
print(OUT $text); |
print(OUT $text); |
close(OUT); |
close(OUT); |
|
|
Line 148 open(IN,"</home/loninst/public_html/vers
|
Line 164 open(IN,"</home/loninst/public_html/vers
|
my $releasedate = <IN>; |
my $releasedate = <IN>; |
close(IN); |
close(IN); |
# -------------- Updating the download page with the date of the last build |
# -------------- Updating the download page with the date of the last build |
open(IN,"</home/loninst/public_html/docs/downloads/index.html"); |
open(IN,"</home/loninst/public_html/index.html"); |
my @lines = <IN>; |
my @lines = <IN>; |
close(IN); |
close(IN); |
my $text = join('',@lines); |
my $text = join('',@lines); |
Line 158 if ($version) {
|
Line 174 if ($version) {
|
$text =~ s/TESTINGRELEASE_START//g; |
$text =~ s/TESTINGRELEASE_START//g; |
$text =~ s/TESTINGRELEASE_END//g; |
$text =~ s/TESTINGRELEASE_END//g; |
} else { |
} else { |
$text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//g; |
$text =~ s/TESTINGRELEASE_START.*TESTINGRELEASE_END//gs; |
} |
} |
open(OUT,">/home/loninst/public_html/docs/downloads/index.html"); |
open(OUT,">/home/loninst/public_html/index.html"); |
print(OUT $text); |
print(OUT $text); |
close(OUT); |
close(OUT); |
|
|
system("cp /home/loninst/auto/loncapa/doc/build/*.html /home/loninst/public_html/"); |
|