Skip to content

Instantly share code, notes, and snippets.

@mattrobenolt
Created May 28, 2012 22:29
Show Gist options
  • Save mattrobenolt/2821473 to your computer and use it in GitHub Desktop.
Save mattrobenolt/2821473 to your computer and use it in GitHub Desktop.
#!/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