Other shared files
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

34 lines
978 B

  1. #!/bin/sh
  2. #
  3. # This script gives developer permissions (canconfirm+editbugs) to an *existing* bugzilla account
  4. #
  5. # Requirements: you must have editusers permissions in bugzilla
  6. # and you must have the bugzilla cookie available (i.e. already logged in)
  7. #
  8. # Author: David Faure <faure@kde.org>
  9. # License: Public domain
  10. #
  11. if [ $# -ne 1 ]; then
  12. echo "Usage: $0 email"
  13. exit 1
  14. fi
  15. email=$1
  16. email_in_query=`echo $email | sed -e 's/@/%40/g'`
  17. url="http://bugs.kde.org/editusers.cgi?action=edit&user=$email_in_query"
  18. appid=`dcopstart konqueror "$url"`
  19. # dcopstart ensures konqueror is launched and ready, but not that tdehtml finished loading
  20. objid=''
  21. while test -z "$objid"; do
  22. # TODO: timeout?
  23. sleep 1
  24. objid=`dcopfind $appid html-widget'*'`
  25. objid=`dcopobject $objid`
  26. if test "`dcop $appid $objid url`" != "$url"; then
  27. objid=''
  28. fi
  29. done
  30. dcop $appid $objid evalJS 'var f=document.forms[0];f.group_7.checked=true;f.group_6.checked=true;f.submit()'