File: update-docs.sh

package info (click to toggle)
pyopenssl 0.7-2
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,152 kB
  • ctags: 1,395
  • sloc: ansic: 5,184; python: 4,303; perl: 3,089; xml: 693; sh: 204; makefile: 171; lisp: 13; sed: 2
file content (21 lines) | stat: -rwxr-xr-x 555 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

# Script which installs a development snapshot of the documentation
# into the "Python @ SourceForge" website.
#
# The push-docs.sh script pushes this to the SourceForge when needed
# and removes it when done.

if [ -z "$HOME" ] ; then
    HOME=`grep fdrake /etc/passwd | sed 's|^.*:\([^:]*\):[^:]*$|\1|'`
    export HOME
fi

UPDATES="$HOME/tmp/$1"

cd /home/groups/python/htdocs || exit $?
rm -rf devel-docs || exit $?
mkdir devel-docs || exit $?
cd devel-docs || exit $?
(bzip2 -dc "$UPDATES" | tar xf -) || exit $?
rm "$UPDATES" || exit $?