diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-01-08 15:27:34 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-01-08 15:27:34 -0300 |
commit | a3e0b61d4d14f01442b98deaa18f66ceb3c4b3b9 (patch) | |
tree | 3460b278fe0b439c81283777d529679a1d95b830 | |
parent | 6e90f39ff729714516779f96875dc9b46854b094 (diff) |
Use standar naming
-rwxr-xr-x | get-repos | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/get-repos b/get-repos new file mode 100755 index 0000000..824ab15 --- /dev/null +++ b/get-repos @@ -0,0 +1,33 @@ +#!/bin/bash +# TODO needs refactoring + +PDIR="/srv/http/web" +DIR="/srv/http/web/repos" + +for arch in i686 x86_64 mips64el; do + for repo in community extra core testing libre libre-testing social; do + [[ ! -d $DIR/$arch ]] && mkdir -p $DIR/$arch + + cd $DIR/$arch + + rm -f *.db.tar.gz + + wget http://repo.parabolagnulinux.org/$repo/os/$arch/$repo.db.tar.gz && \ + $PDIR/manage.py reporead $arch $DIR/$arch/$repo.db.tar.gz + done +done + +for repo in connos connos-extra; do + arch=i586 + [[ ! -d $DIR/$arch ]] && mkdir -p $DIR/$arch + + cd $DIR/$arch + + rm -f *.db.tar.gz + + wget http://www.connochaetos.org/os/$arch/$repo/$repo.db.tar.gz && \ + $PDIR/manage.py reporead $arch $DIR/$arch/$repo.db.tar.gz +done + + +exit 0 |