#! /usr/bin/bash arches=('x86_64' 'aarch64' 'armv7h' 'riscv64') dbfile=BredOS-any.db.tar.gz # strip file extension from dbfile basedb=${dbfile%.db.tar.gz} if [ "$1" = "add" ]; then shift 1 repo-add $dbfile "$@" elif [ "$1" = "remove" ]; then shift 1 repo-remove $dbfile "$@" else echo "Usage: $0 add|remove pkgfiles" fi rm -v $basedb.db $basedb.files cp -v $basedb.db.tar.gz $basedb.db cp -v $basedb.files.tar.gz $basedb.files