Advertisement
Guest User

search & fix improper valac requirements in elementary

a guest
Dec 7th, 2012
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. for branch in $(grep packaging elementaryos-branches); do
  4.     rm -r $(basename $branch)
  5.     bzr checkout --lightweight "$branch"
  6.     cd $(basename $branch)
  7.     if (grep vala debian/control control | grep -q 0.16); then
  8.         if ! grep -q valac-0.16 debian/control control; then
  9.             echo "$branch has improper dependencies. Please fix and press Enter. Type 'skip' to skip this package."
  10.             read reply
  11.             if [ "$reply" != "skip" ]; then
  12.                 bzr commit -m "Fixed dependencies to build cleanly on vanilla Precise"
  13.             fi
  14.         else echo "$branch looks proper to me!"
  15.         fi
  16.     fi
  17.     cd ..
  18. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement