]> git.wh0rd.org Git - home.git/commitdiff
normalize names more
authorMike Frysinger <vapier@gentoo.org>
Tue, 31 Jul 2012 21:01:15 +0000 (17:01 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 31 Jul 2012 21:01:15 +0000 (17:01 -0400)
.bin/er-close

index b9673657339122af6b08afe16aed9705bc2d6829..a9edb8d260c7a762f986ff73d78d5a81449c11cd 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 . ~/.profile.d/gentoo.sh
+. ~/.profile.d/aliases.sh
 
 op=${0##*/}
 ops=( ${op//-/ } )
@@ -52,6 +53,11 @@ while [[ $# -ne 0 ]] ; do
                name=$(xml sel -E utf8 -t -m bugzilla/bug/long_desc -v who -n $xml | \
                        head -${c} | tail -1 | cut -d@ -f1)
        fi
+       new_name=$(echo "${name}" | scrub_html | sed 's: (.*)$::')
+       if [[ ${new_name} != "${name}" ]] ; then
+               echo "Normalizing '${name}' to '${new_name}'"
+               name=${new_name}
+       fi
 
        if [[ -n ${cl_msg} ]] ; then
                cl_msg+="  "