Advertisement
cc11rocks

Fix "control" file in package

Sep 3rd, 2012
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.89 KB | None | 0 0
  1. #After typing in the same commands 25+ times, I decided to make a simple bash script to do it for me.  I just started fixing bugs (yesterday, 09/02/12).  This script downloads the branch, edits the control file ($package/debian/control), and runs the necessary commands to propose to merge.  If you are editing something repetitively, this might be of some use to you. Make sure to edit where your ID (such as "cc11rocks") and release (such as "quantal"). Also, change the directories to suit your setup.  Enjoy!
  2.  
  3.  
  4. #!/bin/bash
  5. echo "What package?"
  6. read package
  7. cd ~/Ubu_Dev_bzr #edit this to your setup
  8. bzr branch lp:ubuntu/$package
  9. if [ -d $package ]; then
  10.  
  11.     cd $package/debian
  12.     gedit control
  13.     read pause
  14.     dch -i
  15.     debcommit
  16.     bzr push lp:~cc11rocks/ubuntu/quantal/$package/type-fix #edit "cc11rocks" and "quantal" to suit your needs
  17.     bzr lp-propose
  18.  
  19. else
  20.     echo "Branch not found"
  21.     ls
  22. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement