demo-headless.sh 617 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # Part of Zombie Navigator
  3. # Copyright © 2015 Zombie Navigator Developers
  4. cd "`dirname "$0"`"
  5. dir='.demo_tmp_home'
  6. mkdir -p "$dir" && cd "$dir"
  7. cat <<EOF > .profile
  8. title='zombie@mozilla:~'
  9. PS1="\$title\$ "
  10. printf '\033]2;%s\007' "\$title"
  11. reset
  12. export PATH="\$OLDPATH"
  13. unset OLDPATH
  14. #export USER="zombie"
  15. echo "\${PS1}ZOMBIE_NAVIGATOR_DEMO=simple xvfb-run -a firefox"
  16. ZOMBIE_NAVIGATOR_DEMO=simple ../headless-run.sh 2>/dev/null | grep --line-buffered 'zombie-navigator' | egrep -v 'JPM|XPI'
  17. EOF
  18. env -i HOME="`pwd`" TERM="$TERM" OLDPATH="$PATH" sh -l
  19. cd ..
  20. rm -frv "$dir"
  21. # vim: ts=4 noet ai