daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest May 17th, 2018 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. DIR="test"
  2. #cd $DIR
  3. for file in $DIR/*.gr8
  4. do
  5.     #FILENAME=$(basename $file .gr8 | cut -d'-' -f3)
  6.     FILENAME=$(basename $file .gr8)
  7.     #./gr8 $file -o $DIR/xmlnew/$FILENAME.new.xml
  8.     echo $FILENAME
  9.     ./gr8 --target asm < $DIR/$FILENAME.gr8 > $DIR/programs/$FILENAME.asm
  10.     yasm -felf32 $DIR/programs/$FILENAME.asm -o $DIR/programs/$FILENAME.o
  11.     ld -melf_i386 -o $DIR/programs/$FILENAME $DIR/programs/$FILENAME.o -lrts
  12.     ./$DIR/programs/$FILENAME > $DIR/output/$FILENAME.out
  13.     diff -w --strip-trailing-cr $DIR/expected/$FILENAME.out $DIR/output/$FILENAME.out
  14.    
  15.     #diff $DIR/xml/$FILENAME.xml $DIR/xmlnew/$FILENAME.new.xml
  16.     #./xml2dot.py $DIR/xml/$FILENAME.xml > $DIR/xml/$FILENAME.xml.dot
  17.     #java -cp xml2dot.jar xml2dot.xml2dot $DIR/xml/$FILENAME.xml
  18.     #dot $DIR/xml/$FILENAME.xml.dot -Tpng -o $DIR/images/$FILENAME.png
  19.     #rm $DIR/xml/$FILENAME.xml.dot
  20.     #echo $file
  21.     #./fl < $file > ${DIR}outputs/$file
  22. done
RAW Paste Data
Top