cookutils rev 20

Explain receipt variable in README and small fix to CGI
author Christophe Lincoln <pankso@slitaz.org>
date Thu May 05 22:27:09 2011 +0200 (2011-05-05)
parents f02a85a1f33d
children 58d6d4ca71d4
files README web/cooker.cgi
line diff
     1.1 --- a/README	Thu May 05 21:14:03 2011 +0200
     1.2 +++ b/README	Thu May 05 22:27:09 2011 +0200
     1.3 @@ -34,6 +34,14 @@
     1.4      * The work of a Build Bot, unix philosophy: one tool for one task
     1.5      * Cook a package if you receipt is crappy :-)
     1.6  
     1.7 +Cook variables used in receipt:
     1.8 +
     1.9 +    * $src     : Path to package source: wok/pkg/source
    1.10 +    * $stuff   : Path to package stuff: wok/pkg/stuff
    1.11 +    * $fs      : Path to package file system: wok/pkg/taz/*/fs
    1.12 +    * $install : Path to all installed files by the package
    1.13 +                 Old style is _pkg and cook is compatible
    1.14 +
    1.15  Cook also manage packages list so they can be used for a personnal packages
    1.16  repository or sent to the official mirror. We create and use:
    1.17  
    1.18 @@ -51,7 +59,7 @@
    1.19  a bloated script so please Keep It Short and Simple.
    1.20  
    1.21  Cmdline tool  : /usr/bin/cooker
    1.22 -Web interface : /var/www/cooker
    1.23 +Web interface : /var/www/cgi-bin/cooker
    1.24  Cache folder  : /home/slitaz/cache
    1.25  
    1.26  The web interface consist in one CGI script, 2 xHTML files and a CSS style.
     2.1 --- a/web/cooker.cgi	Thu May 05 21:14:03 2011 +0200
     2.2 +++ b/web/cooker.cgi	Thu May 05 22:27:09 2011 +0200
     2.3 @@ -197,7 +197,7 @@
     2.4  
     2.5  <h2>Latest cook</h2>
     2.6  <pre>
     2.7 -$(list_packages | sed s"#^\([^']* \)#<span class='span-date'>\0</span>#"g)
     2.8 +$(list_packages | sed s"#^\([^']*\).* : #<span class='log-date'>\0</span>#"g)
     2.9  </pre>
    2.10  EOT
    2.11  	;;