use html version
This commit is contained in:
parent
f03a0b04b1
commit
f3ad12edc9
1 changed files with 20 additions and 4 deletions
|
@ -13,17 +13,33 @@ TMP=/tmp/$TAG
|
||||||
PKG=$TMP/pkg-$PRGNAM
|
PKG=$TMP/pkg-$PRGNAM
|
||||||
OUTPUT=/tmp
|
OUTPUT=/tmp
|
||||||
|
|
||||||
|
REPOSITORIES=/home/cycojesus/projets/packages/repositories
|
||||||
|
|
||||||
PREFIX=/usr
|
PREFIX=/usr
|
||||||
|
|
||||||
# cleaning
|
# cleaning
|
||||||
rm -fr $PKG
|
rm -fr $PKG
|
||||||
|
|
||||||
# get sources
|
# get sources
|
||||||
[ -e $CWD/LearnPythonTheHardWay.pdf ] && mv $CWD/LearnPythonTheHardWay.pdf $CWD/LearnPythonTheHardWay.pdf.orig
|
if [ ! -e $REPOSITORIES/$PRGNAM ]; then
|
||||||
wget -c http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf -O $CWD/LearnPythonTheHardWay.pdf
|
mkdir -p $REPOSITORIES/$PRGNAM
|
||||||
|
( cd $REPOSITORIES/$PRGNAM
|
||||||
|
httrack http://learnpythonthehardway.org/book/
|
||||||
|
)
|
||||||
|
else
|
||||||
|
( cd $REPOSITORIES/$PRGNAM
|
||||||
|
httrack --update
|
||||||
|
)
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
mkdir -p $PKG$PREFIX/doc/
|
||||||
cp -R $CWD/LearnPythonTheHardWay.pdf $PKG$PREFIX/doc/$PRGNAM
|
cp -R $REPOSITORIES/$PRGNAM $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
|
||||||
|
# [ -e $CWD/LearnPythonTheHardWay.pdf ] && mv $CWD/LearnPythonTheHardWay.pdf $CWD/LearnPythonTheHardWay.pdf.orig
|
||||||
|
# wget -c http://learnpythonthehardway.org/static/LearnPythonTheHardWay.pdf -O $CWD/LearnPythonTheHardWay.pdf
|
||||||
|
|
||||||
|
# mkdir -p $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
# cp -R $CWD/LearnPythonTheHardWay.pdf $PKG$PREFIX/doc/$PRGNAM
|
||||||
|
|
||||||
( cd $PKG
|
( cd $PKG
|
||||||
mkdir -p install
|
mkdir -p install
|
||||||
|
|
Loading…
Add table
Reference in a new issue