Created
May 28, 2012 22:29
-
-
Save mattrobenolt/2821473 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
BRANCHES=( master kovu ) | |
PACKAGES=( src activity proxy ) | |
for branch in ${BRANCHES[@]}; do | |
for package in ${PACKAGES[@]}; do | |
BUILDS=( $(repoman show drund | grep drund-$package-$branch-r | sort -r) ) | |
for build in ${BUILDS[@]:10}; do | |
repoman rm drund $build | |
done | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment