From a1629e15ec3bc248b0fc44b92d983b81375d3a50 Mon Sep 17 00:00:00 2001 From: davidovski Date: Sat, 20 Nov 2021 17:25:45 +0000 Subject: added repos index --- build-repo.sh | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/build-repo.sh b/build-repo.sh index dbff02d..6d95b92 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -9,6 +9,12 @@ fetch () { } build () { + REPOS_INDEX=dist/repo/index.html + rm $REPOS_INDEX + + echo-head "repo" >> $REPOS_INDEX + echo "

repo

" >> $REPOS_INDEX + for REPO in $(du -h xipkgs/repo/* | awk '{print $2}' | sort -r ); do REPO_NAME=$(echo $REPO | cut -d"/" -f2-) @@ -32,16 +38,28 @@ build () { generate-package-list add-additional + + echo "

$REPO_NAME

" >> $REPOS_INDEX + + + echo "

package count: $(ls dist/$REPO_NAME/*.xipkg | wc -l)

" >> $REPOS_INDEX done; + + echo "" } -start-index () { +echo-head () { echo " - packages for $1 + $1 - - + + " +} + +start-index() { + echo-head "packages for $1" > $2 + echo "

Packages in $1

@@ -52,7 +70,7 @@ start-index () { - " > $2 + " >> $2 } extend-index () { @@ -119,7 +137,8 @@ add-additional () { # add key for whole repo mkdir dist/keychain - cp keychain/xi.pub dist/keychain/ + cp keychain/keys.list dist/keychain/ + cp keychain/*.pub dist/keychain/ } clean () { -- cgit v1.2.1
file info file