version 1.2, 2002/08/15 14:41:10
|
version 1.4, 2003/01/26 23:13:46
|
Line 23 The current 'loninst' crontab entry is:
|
Line 23 The current 'loninst' crontab entry is:
|
13 16 * * * /home/loninst/auto/install_web_site_cronjob |
13 16 * * * /home/loninst/auto/install_web_site_cronjob |
|
|
The main goal of B<install_web_site_cronjob> is to periodically produce the |
The main goal of B<install_web_site_cronjob> is to periodically produce the |
tarball needed for LON-CAPA installation. |
unstable tarball needed for LON-CAPA installation. |
|
|
A secondary yet important function of B<install_web_site_cronjob> is that it |
A secondary yet important function of B<install_web_site_cronjob> is that it |
also refreshes the documentation present on the install.lon-capa.org |
also refreshes the documentation present on the install.lon-capa.org |
web site. |
web site. |
|
|
|
It does depend on a file name LATEST-IS-something, where something is |
|
the latest release of loncapa, that file should also contain a string |
|
that will be used to date the release. |
|
|
The coding of this script is a strange brew of shell commands |
The coding of this script is a strange brew of shell commands |
with perl. |
with perl. |
|
|
Line 39 Scott Harrison 2002-07-19
|
Line 43 Scott Harrison 2002-07-19
|
=cut |
=cut |
|
|
# --------------------------------------------- Making the tarball distribution |
# --------------------------------------------- Making the tarball distribution |
`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_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_PASSFILE=/home/loninst/.cvspass; export CVSROOT=:pserver:scott\@localhost:/home/cvs; rm -Rf loncapa-unstable; rm -Rf loncapa; cvs -Q export -r HEAD loncapa;`; |
|
open(OUT,'>/home/loninst/auto/loncapa/README'); |
|
print(OUT <<END); |
|
This is a CVS export of LON-CAPA generated on: |
|
END |
|
print(OUT `date`); |
|
print(OUT <<END); |
|
|
|
To generate an installable tarball distribution from this file, you can |
|
execute the following commands: |
|
cd loncom/build |
|
make tardist |
|
|
|
Note that the installable tarball distribution (the 'tardist' target) |
|
is what encapsulates the stable releases of the LON-CAPA software (as |
|
well as ensuring that LON-CAPA's distributability does not rely solely on |
|
CVS software). |
|
|
|
END |
|
print(OUT <<END); |
|
An alternative Makefile command sequence is: |
|
cd loncom/build |
|
make build |
|
make install |
|
|
|
For more information on Makefile targets, you can just enter the following |
|
commands: |
|
cd loncom/build |
|
make help |
|
|
|
Finally, if you encounter any problems, be sure to enter them |
|
into the bug database http://bugs.lon-capa.org/ or, alternatively, |
|
discuss them on one of the mailing lists available at |
|
http://mail.lon-capa.org/. |
|
END |
|
close(OUT); |
|
`cd /home/loninst/auto; ln -s loncapa loncapa-unstable; tar cvvf loncapa-unstable.tar loncapa-unstable/* ;gzip -9 -f loncapa-unstable.tar`; |
# ---------------------------------------- Dynamically generating documentation |
# ---------------------------------------- Dynamically generating documentation |
`cd /home/loninst/auto/loncapa/loncom/build; make pdfdoc`; |
`cd /home/loninst/auto/loncapa/loncom/build; make pdfdoc`; |
`cd /home/loninst/auto/loncapa/loncom/build; make doc`; |
`cd /home/loninst/auto/loncapa/loncom/build; make doc`; |
Line 48 Scott Harrison 2002-07-19
|
Line 88 Scott Harrison 2002-07-19
|
`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`; |
`cd /home/loninst/public_html/docs; tar xzf docs.tar.gz`; |
|
|
# ------------------------------------ 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`; |
|
#chomp($filename); |
|
#$filename=~/loncapa\/loncapa\-(.*?)\.tar\.gz/; |
|
#my $version=$1; |
|
`cd /home/loninst/auto; cp -f loncapa-unstable.tar.gz ../public_html/versions/loncapa-unstable.tar.gz`; |
|
#`cd /home/loninst/public_html/versions; rm -f loncapa-unstable.tar.gz; ln -s loncapa-$version-unstable.tar.gz loncapa-unstable.tar.gz`; |
|
|
|
#get latest version |
|
my $filename=`cd /home/loninst/public_html/versions; find . -type f -name LATEST-IS-* -maxdepth 1`; |
chomp($filename); |
chomp($filename); |
$filename=~/loncapa\/loncapa\-(.*?)\.tar\.gz/; |
$filename=~/LATEST-IS-(.*)/; |
my $version=$1; |
my $version=$1; |
`cd /home/loninst/auto; cp -f loncapa/loncapa-$version.tar.gz ../public_html/versions/loncapa-$version-unstable.tar.gz`; |
open(IN,"</home/loninst/public_html/versions/$filename"); |
`cd /home/loninst/public_html/versions; rm -f loncapa-unstable.tar.gz; ln -s loncapa-$version-unstable.tar.gz loncapa-unstable.tar.gz`; |
my $releasedate=<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/docs/downloads/index.html"); |
my @lines=<IN>; |
my @lines=<IN>; |
Line 62 close(IN);
|
Line 110 close(IN);
|
my $date=`date -I`; chomp($date); |
my $date=`date -I`; chomp($date); |
my $text=join('',@lines); |
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/loncapa-current\.tar\.gz\<\/a\>.*?\./loncapa-current\.tar\.gz\<\/a\> (version $version)\./; |
$text=~s/LATESTVERSION/$version/g; |
|
$text=~s/LATESTDATE/$releasedate/g; |
open(OUT,">/home/loninst/public_html/docs/downloads/index.html"); |
open(OUT,">/home/loninst/public_html/docs/downloads/index.html"); |
print(OUT $text); |
print(OUT $text); |
close(OUT); |
close(OUT); |