chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

reindex.sh (539B)


      1 #!/bin/sh
      2 # after building packages with tools/pkg/build.sh: drop the versions they replace and sign a new index
      3 set -eu
      4 HERE=$(cd "$(dirname "$0")" && pwd)
      5 TOP=$HERE/../..
      6 R=${1:-$TOP/work/repo/x86_64}
      7 APK=${APK:-apk}
      8 KEY=$(ls "$HOME"/.config/chamesle/chamesle-*.rsa | head -n1)
      9 python3 "$HERE/xbps2apk.py" --prune "$R"
     10 "$APK" mkndx --keys-dir "$TOP/keys/apk" --sign-key "$KEY" --description "chamesle $(date +%Y-%m-%d)" \
     11     --index "$R/Packages.adb" --output "$R/Packages.adb.new" "$R"/*.apk
     12 mv "$R/Packages.adb.new" "$R/Packages.adb"