summaryrefslogtreecommitdiffstats
path: root/tools/local-deb-repo-maker
blob: ab0771644e6712f142e9ed596703ee23aa3eb778 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

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