changeset 260:eacc4c5ed628

add an alias for mozbuild bugs and cleanup a bit
author Jeff Hammel <jhammel@mozilla.com>
date Tue, 15 Jan 2013 14:38:01 -0800
parents 1e3b8c99597a
children a529f0d3c259
files .bashrc
diffstat 1 files changed, 13 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/.bashrc	Fri Jan 04 14:36:45 2013 -0800
+++ b/.bashrc	Tue Jan 15 14:38:01 2013 -0800
@@ -40,6 +40,7 @@
 alias mozharness-bug="bz new 'Release Engineering: Automation (General)' --cc ':aki' --whiteboard 'mozharness'"
 alias releng-bug="bz new 'Release Engineering: Automation (General)'"
 alias talos-bug="bz new Talos --cc ':jmaher' --cc ':BYK'"
+alias mozbuild-bug="bz new --product Core 'Build Config' --cc ':gps'"
 
 # PROMPT
 PS1='│'
@@ -126,7 +127,7 @@
 	    then
 		touch /dev/null
 	    else
-		i=""		
+		i=""
 		break
 	    fi
 	done
@@ -151,7 +152,7 @@
         grep --color=auto -i -n -C 3 "$1" $i
     done
 
-} 
+}
 
 # make a temporary file
 tmpfile() {
@@ -226,16 +227,6 @@
     kill `isrunning "$@" | awk '{ print $1 }' | onelineit.py`
 }
 
-
-tf() {
-    if [[ $@ ]]
-    then
-	echo "true"
-    else
-	echo "false"
-    fi
-}
-
 # full name
 fn() {
     python -c "import os; print os.path.realpath('$*')"
@@ -256,6 +247,8 @@
 python -c "import $1; print $1.__file__"
 }
 
+### functions for version control systems
+
 svndance(){
 # do the svn import dance!
 if (( $# ))
@@ -274,8 +267,8 @@
 grep '^+++ ' $@ | sed 's/+++ b\///'
 }
 
-hg-update-all() { 
-for i in *; 
+hg-update-all() {
+for i in *;
 do
     if [ -e $i/.hg ]
     then
@@ -306,10 +299,6 @@
 cd -
 }
 
-blog-file() {
-echo "$HOME/web/blog/k0s/entries/public/$1"
-}
-
 hgrc() {
 ROOT="${1}"
 echo "[paths]"
@@ -317,6 +306,12 @@
 echo "default-push = ssh://${ROOT#http*://}"
 }
 
+### functions for web content
+
+blog-file() {
+echo "$HOME/web/blog/k0s/entries/public/$1"
+}
+
 flatten() {
   directory=$PWD
   if [ "$#" == "1" ]