wok-current rev 8982
Fixed othello to work locally so sources don't have to be downloaded everytime.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Mar 02 15:36:11 2011 +0000 (2011-03-02) |
parents | 441a612f852a |
children | da11c5611f49 |
files | othello/receipt |
line diff
1.1 --- a/othello/receipt Wed Mar 02 20:58:26 2011 +0100 1.2 +++ b/othello/receipt Wed Mar 02 15:36:11 2011 +0000 1.3 @@ -13,16 +13,21 @@ 1.4 { 1.5 mkdir -p $src/images 2> /dev/null 1.6 cd $src 1.7 - if [ ! -s othello.js ] && 1.8 - wget http://mirror.slitaz.org/sources/packages/o/$TARBALL; then 1.9 - unlzma -c $TARBALL | tar xf - 1.10 - mv $PACKAGE-$VERSION/* . 1.11 + if [ ! -s othello.js ]; then 1.12 + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then 1.13 + unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - 1.14 + mv $PACKAGE-$VERSION/* . 1.15 + else 1.16 + wget -O $SOURCES_REPOSITORY/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL && 1.17 + unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - 1.18 + mv $PACKAGE-$VERSION/* . 1.19 + fi 1.20 fi 1.21 - for i in index.html othello.js \ 1.22 - images/blank.gif images/white.gif images/black.gif \ 1.23 - images/white-trans.gif images/black-trans.gif ; do 1.24 - [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i 1.25 - done 1.26 + #for i in index.html othello.js \ 1.27 + # images/blank.gif images/white.gif images/black.gif \ 1.28 + # images/white-trans.gif images/black-trans.gif ; do 1.29 + # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i 1.30 + #done 1.31 sed -i 's|TITLE>.*</TITLE|TITLE>Othello</TITLE|' index.html 1.32 } 1.33