# HG changeset patch # User Christopher Rogers # Date 1299080171 0 # Node ID c2e7ccf93d10aecd632fdc5617194fa558007290 # Parent 441a612f852a72747fb9dd8278332b22b2fcc1a0 Fixed othello to work locally so sources don't have to be downloaded everytime. diff -r 441a612f852a -r c2e7ccf93d10 othello/receipt --- a/othello/receipt Wed Mar 02 20:58:26 2011 +0100 +++ b/othello/receipt Wed Mar 02 15:36:11 2011 +0000 @@ -13,16 +13,21 @@ { mkdir -p $src/images 2> /dev/null cd $src - if [ ! -s othello.js ] && - wget http://mirror.slitaz.org/sources/packages/o/$TARBALL; then - unlzma -c $TARBALL | tar xf - - mv $PACKAGE-$VERSION/* . + if [ ! -s othello.js ]; then + if [ -f $SOURCES_REPOSITORY/$TARBALL ]; then + unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - + mv $PACKAGE-$VERSION/* . + else + wget -O $SOURCES_REPOSITORY/$TARBALL http://mirror.slitaz.org/sources/packages/o/$TARBALL && + unlzma -c $SOURCES_REPOSITORY/$TARBALL | tar xf - + mv $PACKAGE-$VERSION/* . + fi fi - for i in index.html othello.js \ - images/blank.gif images/white.gif images/black.gif \ - images/white-trans.gif images/black-trans.gif ; do - [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i - done + #for i in index.html othello.js \ + # images/blank.gif images/white.gif images/black.gif \ + # images/white-trans.gif images/black-trans.gif ; do + # [ -s $i ] || wget -P $(dirname $i) $WEB_SITE/$i + #done sed -i 's|TITLE>.*Othello