xv6

port of xv6 to x86-64
git clone http://frotz.net/git/xv6.git
Log | Files | Refs | README | LICENSE

spinp (240B)


      1 #!/bin/sh
      2 
      3 if [ $# != 1 ] || [ ! -f "$1" ]; then
      4 	echo 'usage: spinp file.p' 1>&2
      5 	exit 1
      6 fi
      7 
      8 rm -f $1.trail
      9 spin -a $1 || exit 1
     10 cc -DSAFETY -DREACH -DMEMLIM=500 -o pan pan.c
     11 pan -i
     12 rm pan.* pan
     13 if [ -f $1.trail ]; then
     14 	spin -t -p $1
     15 fi
     16