Created
October 17, 2009 00:49
-
-
Save ghostbar/212173 to your computer and use it in GitHub Desktop.
reprepro pooling system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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