Jabberwocky submission for Computer Organization
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
492 B

  1. #!/bin/sh
  2. # Make binary folder
  3. mkdir bin
  4. # Compile
  5. gcc atob.c -g -o bin/atob
  6. gcc jabber.c -g -o bin/jabber
  7. gcc wocky.c -g -o bin/wocky
  8. gcc btoa.c -g -o bin/btoa
  9. # Run in order
  10. ./bin/atob ${1} bit.txt
  11. ./bin/jabber bit.txt zap.txt
  12. ./bin/wocky zap.txt kapow.txt
  13. ./bin/btoa kapow.txt out.txt
  14. # Print all
  15. << ////
  16. echo --${1}--
  17. cat ${1}
  18. echo
  19. echo --bit-${1}--
  20. cat bit.txt
  21. echo
  22. echo --zap-${1}--
  23. cat zap.txt
  24. echo
  25. echo --kapow-${1}--
  26. cat kapow.txt
  27. echo
  28. echo --out.txt--
  29. cat out.txt
  30. echo
  31. ////