-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmksite.sh
More file actions
executable file
·35 lines (23 loc) · 874 Bytes
/
Copy pathmksite.sh
File metadata and controls
executable file
·35 lines (23 loc) · 874 Bytes
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
#!/bin/sh
#
# Script to generate up-to-date version of the site / bogorodskiy@gmail.com
if test "x$1" = "x"; then
echo "you must specify password"
exit 1
fi
PASSWORD="$1"
URL="http://novel.evilcoder.org/gg/"
SITEDIR="site"
VERSION=`grep version setup.py|sed 's|^[ ]*version[ ]*\=[ ]*"\(.*\)".|\1|'`
DIST="gg-${VERSION}.tar.gz"
mkdir -p ${SITEDIR}/dist 2>&1 > /dev/null
mkdir -p ${SITEDIR}/docs/${VERSION}/
echo "creating dist..."
python setup.py sdist
mv dist/${DIST} ${SITEDIR}/dist
echo "generating documentation..."
epydoc --html -n GoGridManager -u ${URL} --graph=all -o ${SITEDIR}/docs/${VERSION}/ GoGridManager
echo "generating index.html..."
sed "s|%%VERSION%%|${VERSION}|g" website/index.html > ${SITEDIR}/index.html
cp website/gg.css ${SITEDIR}/
lftp -u novel,${PASSWORD} -e "mirror --reverse --verbose ${SITEDIR} public_html/gg" novel.evilcoder.org