aboutsummaryrefslogtreecommitdiff
path: root/scripts/paku
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-20 06:41:41 -0300
committerEuAndreh <eu@euandre.org>2021-06-20 06:41:41 -0300
commit52f9b8dfb34dc7b610251ee3e4c59ce053790a37 (patch)
treeec60ae67258159a33d2e46ec0a7a563ea940ff9d /scripts/paku
parentaux/ci/report.sh: Update (diff)
downloadpackage-repository-52f9b8dfb34dc7b610251ee3e4c59ce053790a37.tar.gz
package-repository-52f9b8dfb34dc7b610251ee3e4c59ce053790a37.tar.xz
Generate dependencies.svg and paku.html inside public/ directly
Diffstat (limited to '')
-rwxr-xr-xscripts/paku7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/paku b/scripts/paku
index 939db80..4f40b4d 100755
--- a/scripts/paku
+++ b/scripts/paku
@@ -240,7 +240,8 @@ refresh_packages() {
}
report_index() {
- cat <<EOF > paku.html
+ HTML_OUT='public/paku.html'
+ cat <<EOF > "$HTML_OUT"
<!DOCTYPE html>
<html lang="en">
<head>
@@ -277,7 +278,7 @@ EOF
ID='latest'
fi
- cat <<EOF >> paku.html
+ cat <<EOF >> "$HTML_OUT"
<li id="$NAME-$ID">
<details>
<summary><a href="#$NAME-$ID">$NAME</a> ($VERSION) - $DESCRIPTION</summary>
@@ -341,7 +342,7 @@ EOF
EOF
done
- cat <<EOF >> paku.html
+ cat <<EOF >> "$HTML_OUT"
</ul>
</body>
</html>