source: scripts/filter-continent.bash @ 3001

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