source: scripts/repository/repo-clone.bash @ 3028

Revision 3028, 724 bytes checked in by alanbach-guest, 6 years ago (diff)
  • Restructuring scripts/ folder
  • Property svn:executable set to *
Line 
1#!/bin/bash
2# Bash script to clone Parsix APT repo
3# Coyright 2008 Alan Baghumian / GNU/GPL
4#
5# Created: 2008-02-01 16:44 +330 GMT
6# Updated: 2008-02-01 16:50 +330 GMT
7
8parsix_repo="/home/parsix/public_html/packages/"
9
10if [ -z "${1}" ]; then
11   echo "Unknown destination distro."
12   exit
13else
14   dst_distro="${1}"
15fi
16
17if [ -z "${2}" ]; then
18   echo "Unknown source distro."
19   exit
20else
21   src_distro="${2}"
22fi
23
24if [ ! -d "${parsix_repo}" ]; then
25    echo "Parsix repository does not exist."
26    exit
27else
28    cd ${parsix_repo}
29fi
30
31list=`find ./pool/ -type f | grep .deb$ | awk 'BEGIN{FS="_"}{print $1}' | xargs -n1 basename | sort -u`
32
33# Remove
34reprepro -Vb . copy ${dst_distro} ${src_distro} ${list}
35
36# Sign!
37../../sign
38
39
Note: See TracBrowser for help on using the repository browser.