summaryrefslogtreecommitdiff
path: root/move_debs_arm64
blob: e8f3d30a63d3aa290337001eb03871a8d3926aad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

# Copy binary packages built in a chroot on a remote server to the local repository

usage()
{
echo "Usage: ./move_debs bookworm|trixie"
}

# Positional argument
if [ $# -lt 1 ]; then usage; exit 1; fi
DIST=$1

# Validate distribution argument
if [ $DIST != "bookworm" ] && [ $DIST != "trixie" ]; then usage; exit 1; fi

# This is the line used for the server at Hetzner
#scp arm64:/var/chroot/$DIST-arm64/root/r-backports/$DIST/*${DIST}cran*_arm64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran46

# The following line was used for the first compile that was not done in a chroot, but in the installed trixie system
#scp raspi5:/home/jranke/r-backports/$DIST/*${DIST}cran*_arm64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran46

# This line should suffice in the future, when I do both distributions in a chroot
scp raspi5:/home/jranke/r-backports/$DIST/*${DIST}cran*_arm64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran46
sudo chown jranke /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran46

Contact - Imprint