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