demo-headless.sh 653 B

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