summaryrefslogblamecommitdiff
path: root/move_debs
blob: 17e9a509329d2b37899017d1df7a05abe5350f46 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                                

       
                                                  

 



                                       
                                
                                                                                                      
 
                                                       
                                                                                                             
#!/bin/bash

# Move binary packages built in a chroot to the local repository

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

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

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

sudo chown jranke $DIST/*${DIST}cran*_amd64.{deb,build}
mv -v $DIST/*${DIST}cran*_amd64.{deb,build} /home/jranke/git/uni-bremen/website/www/ranke/r-cran/$DIST-cran40

Contact - Imprint