summaryrefslogtreecommitdiff
path: root/move_debs
blob: 7f1919fcdb37a6d0ac25ca3e56ad9fd91fe194b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

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

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

usage()
{
echo "Usage: ./move_debs squeeze|wheezy|jessie"
}

# Validate distribution argument
if [ $DIST != "squeeze" ] && [ $DIST != "wheezy" ] && [ $DIST != "jessie" ]; then usage; exit 1; fi

chown jranke $DIST/*${DIST}cran*_amd64.deb
mv $DIST/*${DIST}cran*_amd64.deb /home/jranke/svn/website/www/ranke/r-cran/$DIST-cran3

Contact - Imprint