# HG changeset patch # User Jeff Hammel # Date 1358289481 28800 # Node ID eacc4c5ed62815a5d0f69bfaf781750f9da619c9 # Parent 1e3b8c99597ae07a2ba8c4cf1b841c362a326cc2 add an alias for mozbuild bugs and cleanup a bit diff -r 1e3b8c99597a -r eacc4c5ed628 .bashrc --- 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" ]