File: htdocs-replace.sh

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (46 lines) | stat: -rwxr-xr-x 1,407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash

# WARNING: completely replaces htdocs by new version without
# backups other than the cvs repository.
# It is assumed that old versions of htdocs can be obtained using
# cvs export with a different tag or date

DOCBOOKDIR=htdocs/resources/docbook-manual
DEBIANDIR=htdocs/resources/debian
PLOTEXAMPLES=htdocs_plot_examples.tgz

echo "This script is obsolete.  In order to update the PLplot web site,"
echo "Please, use the Makefile in the www CVS module."
echo "(Read the README file for instructions)."

exit 0

cd /home/groups/p/pl/plplot

if [ ! -d $DOCBOOKDIR ] ; then
  echo "Warning: The DocBook directory is missing in the htdocs hierarchy."
  echo "  Install it from the CVS checked out sources of the docbook module."
  DOCBOOKDIR=""
else  
  mv $DOCBOOKDIR docbook-manual-$$
fi  

if [ ! -f $PLOTEXAMPLES ] ; then
    echo "Warning, $PLOTEXAMPLES does not exists."
    echo "Follow the instructions in scripts/htdocs-gen_plot-examples.sh to"
    echo "generate it."
fi

test -d $DEBIANDIR && mv $DEBIANDIR debian-$$

if [ -z "$USER" ] ; then 
  echo -n "Login name for SourceForge CVS: "
  read USER
fi
rm -rf htdocs
CVS_RSH=ssh CVSROOT=$USER@cvs1:/cvsroot/plplot \
  cvs export -r HEAD -d htdocs www
test -n "$DOCBOOKDIR" && mv docbook-manual-$$ $DOCBOOKDIR
test -n "$DEBIANDIR" && mv debian-$$ $DEBIANDIR
test -f $PLOTEXAMPLES && tar xzf htdocs_plot_examples.tgz
chmod -R g=u htdocs