diff options
Diffstat (limited to 'add_package.sh')
-rwxr-xr-x | add_package.sh | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/add_package.sh b/add_package.sh deleted file mode 100755 index 8cad456..0000000 --- a/add_package.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - - -REPO=$1 # provide repository name (e.g. 'xengineering') as first argument -ARCH=$2 # provide architecture (e.g. 'aarch64' or 'x86_64') as second argument -PKG=$3 # provide path to package (e.g. 'xengineering-base-meta/xengineering-base-meta-1.0.0-1-any.pkg.tar.zst') as third argument - -PREFIX="repos/$REPO/os/$ARCH" -DATABASE="$PREFIX/$REPO.db" -FILESTORAGE="$PREFIX/$REPO.files" - - -# make sure folders exist -mkdir -p $PREFIX - -# add to database and re-sign database -repo-add $DATABASE.tar.zst $PKG -gpg -u xengineering --detach-sign -o $DATABASE.sig $DATABASE -gpg -u xengineering --detach-sign -o $FILESTORAGE.sig $FILESTORAGE - -# copy package and signature to repository -cp $PKG $PREFIX/ -cp $PKG.sig $PREFIX/ - |