cookutils diff web/cooker.cgi @ rev 383
cooker: add some support for cross compilation. We use a arch.$ARCH file to check id package must be build for the host arch or not
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 12 23:26:36 2012 +0200 (2012-05-12) |
parents | 0f9e30b30fb0 |
children | f91214807ed8 |
line diff
1.1 --- a/web/cooker.cgi Sat Apr 21 20:36:19 2012 +0200 1.2 +++ b/web/cooker.cgi Sat May 12 23:26:36 2012 +0200 1.3 @@ -256,8 +256,19 @@ 1.4 echo "<pre>No files list for: $pkg</pre>" 1.5 fi ;; 1.6 *) 1.7 - # Main page with summary. 1.8 - inwok=$(ls $WOK | wc -l) 1.9 + # We may have a toolchain.cgi script for cross cooker's 1.10 + if [ -f "toolchain.cgi" ]; then 1.11 + toolchain='toolchain.cgi' 1.12 + else 1.13 + toolchain='cooker.cgi?pkg=slitaz-toolchain' 1.14 + fi 1.15 + # Main page with summary. Count only package include in ARCH, 1.16 + # use 'cooker arch' to manually create arch.$ARCH files. 1.17 + # We may have arm only packages, use arch.i486 ? 1.18 + case "$ARCH" in 1.19 + arm) inwok=$(ls $WOK/*/arch.$ARCH | wc -l) ;; 1.20 + *) inwok=$(ls $WOK | wc -l) ;; 1.21 + esac 1.22 cooked=$(ls $PKGS/*.tazpkg | wc -l) 1.23 unbuilt=$(($inwok - $cooked)) 1.24 pct=0 1.25 @@ -281,7 +292,7 @@ 1.26 Blocked packages : $(cat $blocked | wc -l) 1.27 </pre> 1.28 1.29 -<p> 1.30 +<p class="info"> 1.31 Packages: $inwok in the wok - $cooked cooked - $unbuilt unbuilt - 1.32 Server date: $(date '+%Y-%m-%d %H:%M') 1.33 </p> 1.34 @@ -295,7 +306,7 @@ 1.35 <a href="cooker.cgi?file=commits.log">commits.log</a> 1.36 <a href="cooker.cgi?file=installed.diff">installed.diff</a> 1.37 - Architecture $ARCH: 1.38 - <a href="cooker.cgi?pkg=slitaz-toolchain">toolchain.log</a> 1.39 + <a href="$toolchain">toolchain</a> 1.40 </p> 1.41 1.42 <a name="activity"></a>