From fc9881381c8bb4d6e729532de2fe030b3ff418b3 Mon Sep 17 00:00:00 2001 From: Rick Bradshow Date: Mon, 27 Feb 2006 18:30:10 +0000 Subject: I updated all my repo scripts for the latest changes in the 0.8 version of the repo. these are still very specific to my repo, but should give a good idea of what is needed. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1772 ce84e21b-d406-0410-9b95-82705330c041 --- tools/local-deb-repo-maker | 34 ++++++++-------------------------- 1 file changed, 8 insertions(+), 26 deletions(-) (limited to 'tools/local-deb-repo-maker') diff --git a/tools/local-deb-repo-maker b/tools/local-deb-repo-maker index ab0771644..82bb9b0be 100644 --- a/tools/local-deb-repo-maker +++ b/tools/local-deb-repo-maker @@ -1,28 +1,10 @@ -#!/bin/sh +#!/bin/bash +# now build the Package files for everything in the sarge repo + +cd /disks/debian +dpkg-scanpackages sarge /dev/null > sarge/Packages +cd sarge +gzip -c Packages > Packages.gz + -HOSTNAME=`/bin/hostname` -#this is to pull the mplayer/avi stuff. -if [ ${HOSTNAME} == "debian-test" ]; then - cd /tmp - ncftpget ftp://ftp.nerim.net/debian-marillat/dists/stable/main/binary-i386/Packages - grep Package: Packages | awk '{print "ncftpget ftp://ftp.nerim.net/debian-marillat/dists/stable/main/binary-i386/" $2"\\*"}' > marillat-sync - cd /sandbox/woody/ - sh /tmp/marillat-sync - cd /sandbox - dpkg-scanpackages woody /dev/null > woody/Packages - cd woody - gzip -c Packages > Packages.gz -elif [ ${HOSTNAME} == "wonkarific.mcs.anl.gov" ]; then -#this is to pull the testing stuff. - - cd /tmp - ncftpget ftp://ftp.nerim.net/debian-marillat/dists/testing/main/binary-i386/Packages - grep Package: Packages | awk '{print "ncftpget ftp://ftp.nerim.net/debian-marillat/dists/testing/main/binary-i386/" $2"\\*"}' > marillat-sync - cd /sandbox/sarge/ - sh /tmp/marillat-sync - cd /sandbox - dpkg-scanpackages sarge /dev/null > sarge/Packages - cd sarge - gzip -c Packages > Packages.gz -fi -- cgit v1.2.3-1-g7c22