diff options
| author | davidovski <david@davidovski.xyz> | 2021-10-06 21:06:53 +0100 | 
|---|---|---|
| committer | davidovski <david@davidovski.xyz> | 2021-10-06 21:06:53 +0100 | 
| commit | 2939f4d1c36d784773f6ab642e83b48e413adbfc (patch) | |
| tree | 0e1af1fee51a1bf0d67a34bf114969e46195bd93 /build-repo.sh | |
| parent | c7680a4b80867c41ddee4b8cf4c5a3c7acc1f7e8 (diff) | |
added css to index
Diffstat (limited to 'build-repo.sh')
| -rwxr-xr-x | build-repo.sh | 31 | 
1 files changed, 20 insertions, 11 deletions
| diff --git a/build-repo.sh b/build-repo.sh index d22fa1c..c3dd2b0 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -38,11 +38,20 @@ start-index () {      echo "<html>      <head>          <title>packages for $1</title> -        <link rel='stylesheet' type='text/css' href='/style.css'> +        <style>$(cat style.css)</style>      </head>      <body>      <h1>Packages in <a href='../'>$1</a></h1> -    <table>" > $2 +    <table> +    <tr> +        <td>name</td> +        <td>xibuild</td> +        <td>build log</td> +        <td>description</td> +        <td>file</td> +        <td>info file</td> +    </tr> +    " > $2  }  extend-index () { @@ -51,17 +60,17 @@ extend-index () {      COLOR="none"      if grep $PKG_NAME xibuild.report.log | grep -q new; then  -        COLOR="lime" +        COLOR="pass"      fi      if grep $PKG_NAME xibuild.report.log | grep -q fail; then -        if [ ! -f $DEST ]; then  -            COLOR="orange" +        if [ -f $DEST ]; then  +            COLOR="warning"          else -            COLOR="red" +            COLOR="fail"          fi      fi      echo " -        <tr style='background-color: $COLOR'> +        <tr class='$COLOR'>              <td>$PKG_NAME</td>              <td><a href='src/$PKG_NAME.xibuild'>src</a></td>              <td><a href='logs/$PKG_NAME.log'>log</a></td> @@ -79,10 +88,10 @@ conclude-index () {      <h3>Legend:</h3>      <ul> -        <li style='background-color: none'>build skipped; no updates</li> -        <li style='background-color: red'>build failed; no previous version</li> -        <li style='background-color: orange'>build failed; previous version exists</li> -        <li style='background-color: lime'>build passed: new update</li> +        <li>build skipped; no updates</li> +        <li class='fail'>build failed; no previous version</li> +        <li class='warning'>build failed; previous version exists</li> +        <li class='pass'>build passed: new update</li>      </ul>      </body>      </html> | 
