15 lines
295 B
Bash
15 lines
295 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
SERVER="http"
|
|
REMOTE_PATH="/srv/http/repo.wut.ee/ilves"
|
|
PKG="$1"
|
|
|
|
if [[ -z "$PKG" || ! -e "$PKG" ]]; then
|
|
echo "Usage: $0 <package.pkg.tar.xz>"
|
|
exit 1
|
|
fi
|
|
|
|
scp "$PKG" $SERVER:$REMOTE_PATH
|
|
ssh $SERVER repo-add $REMOTE_PATH/ilves.db.tar.xz $REMOTE_PATH/$(basename $PKG)
|