| Revision 2996,
808 bytes
checked in by alanbach-guest, 5 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 | |
|---|
| 10 | if [ -z "${1}" ]; then |
|---|
| 11 | echo "Unknown distro." |
|---|
| 12 | exit |
|---|
| 13 | else |
|---|
| 14 | distro="${1}" |
|---|
| 15 | fi |
|---|
| 16 | |
|---|
| 17 | parsix_repo="/home/parsix/public_html/packages/" |
|---|
| 18 | contnt_repo="/home/parsixpkg/public_html/continent/" |
|---|
| 19 | |
|---|
| 20 | if [ ! -d "${parsix_repo}" ]; then |
|---|
| 21 | echo "Parsix repository does not exist." |
|---|
| 22 | exit |
|---|
| 23 | else |
|---|
| 24 | cd ${parsix_repo} |
|---|
| 25 | fi |
|---|
| 26 | |
|---|
| 27 | list=`find ./pool/ -type f | grep .deb$ | awk 'BEGIN{FS="_"}{print $1}' | xargs -n1 basename | sort -u` |
|---|
| 28 | |
|---|
| 29 | if [ ! -d "${contnt_repo}" ]; then |
|---|
| 30 | echo "Continent repository does not exist." |
|---|
| 31 | exit |
|---|
| 32 | else |
|---|
| 33 | cd ${contnt_repo} |
|---|
| 34 | fi |
|---|
| 35 | |
|---|
| 36 | # Remove |
|---|
| 37 | reprepro -Vb . remove ${distro} ${list} |
|---|
| 38 | |
|---|
| 39 | # Sign! |
|---|
| 40 | ../../sign |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.