#!/bin/sh set -eux PATH=$PATH:/srv/apt/repo/bin DIST="$1" case $DIST in *-pgdg) ;; *) echo "$DIST must match *-pgdg" exit 1 ;; esac cd /srv/apt test -d repo/dists/$DIST cp -a repo/dists/$DIST archive/pub/repos/apt/dists find archive/pub/repos/apt/dists/$DIST -type d | xargs --verbose -n1 indexhtml # sync everything to S3 generate-archive-lists