wok rev 10757
nanochess: get source in $SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 31 11:34:51 2011 +0200 (2011-05-31) |
parents | 859382658ecf |
children | 5ec8b1a4e241 |
files | nanochess/receipt |
line diff
1.1 --- a/nanochess/receipt Mon May 30 22:17:08 2011 +0200 1.2 +++ b/nanochess/receipt Tue May 31 11:34:51 2011 +0200 1.3 @@ -10,10 +10,12 @@ 1.4 # Rules to configure and make the package. 1.5 compile_rules() 1.6 { 1.7 - mkdir $src 1.8 + mkdir $src 2> /dev/null 1.9 cd $src 1.10 - wget -O index.html \ 1.11 - $(dirname $WEB_SITE)/archive/toledo_javascript_chess_3.html 1.12 + _TARBALL=toledo_javascript_chess_3.html 1.13 + [ -s $SOURCES_REPOSITORY/$_TARBALL ] || 1.14 + wget -P $SOURCES_REPOSITORY $(dirname $WEB_SITE)/archive/$_TARBALL 1.15 + cp $SOURCES_REPOSITORY/$_TARBALL index.html && 1.16 sed -i -e 's/<select/\♟ \→ &/' \ 1.17 -e 's/50px/"+P+"px/g' -e 's/=60/="+H+"/g' \ 1.18 -e 's|for(a=|H=innerHeight/9;P=H*5/6;|' -e 's/^"<table/for(a=&/' \