Skip to content

Instantly share code, notes, and snippets.

@ghostbar
Created October 17, 2009 00:49
Show Gist options
  • Save ghostbar/212173 to your computer and use it in GitHub Desktop.
Save ghostbar/212173 to your computer and use it in GitHub Desktop.
reprepro pooling system
#!/bin/sh
DCRET=/home/ghostbar/incoming-experimental
DCROT=/srv/reprepro.deb.rivco.info
for i in $( find $DCRET | grep ".changes" ); do
reprepro -Vb $DCROT include experimental $i
mkdir -p /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - ).exp
for j in $( dcmd $i ); do
mv $j /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - ).exp/
done
done
#!/bin/sh
DCRET=/home/ghostbar/incoming-unstable
DCROT=/srv/reprepro.deb.rivco.info
for i in $( find $DCRET | grep ".changes" ); do
reprepro -Vb $DCROT include unstable $i
mkdir -p /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - )
for j in $( dcmd $i ); do
mv $j /home/ghostbar/debian.rivco.info/$( grep "Source: " $i | sed 's/Source: //' )/$( grep "Version: " $i | sed 1's/Version: //' | grep --max-count=1 - )/
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment