aboutsummaryrefslogtreecommitdiff
path: root/repodb.sh
diff options
context:
space:
mode:
Diffstat (limited to 'repodb.sh')
-rwxr-xr-xrepodb.sh34
1 files changed, 0 insertions, 34 deletions
diff --git a/repodb.sh b/repodb.sh
deleted file mode 100755
index 212b137..0000000
--- a/repodb.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/bash
-
-# end up when failed
-set -Eeuo pipefail
-
-# clean up when exit
-trap cleanup SIGINT SIGTERM ERR EXIT
-cleanup() {
- trap - SIGINT SIGTERM ERR EXIT
- unset ARCH
- unset PKGDEST
- unset REPO_DEST
- unset GPG_KEY
- unset PACKAGE_NAME
- unset LATEST
-}
-
-if [ -z $ARCH ]; then
- ARCH=$(uname -m)
- echo "Warning: You should specify arch environment variable, use current platform: $ARCH"
-fi
-
-REPO_BASE_NAME="kunoisayami"
-#ARCH=$(uname -m)
-REPO_DEST="${PWD}/packages/$ARCH/$REPO_BASE_NAME.db.tar.xz"
-GPG_KEY="4A0F0C8BC709ACA4341767FB243975C8DB9656B9"
-
-while read PACKAGE_NAME; do
- #LATEST=$(ls -t "$PKGDEST/$PACKAGE_NAME"* | grep -v ".sig" | head -n 1 | cut -d' ' -f1)
- if [ -z $PACKAGE_NAME ]; then
- continue
- fi
- repo-add "$REPO_DEST" "$PACKAGE_NAME" -s -v -R -k $GPG_KEY
-done