build_images.sh 609 B

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. BASE=.$$images.h
  3. FINAL=images.h
  4. export PATH=$PATH:build:.
  5. # echo $PATH
  6. ansi-to-src skull.ans > $BASE
  7. ansi-to-src skull-blink.ans >> $BASE
  8. ansi-to-src ghead.ans >> $BASE
  9. ansi-to-src ghost.ans >> $BASE
  10. ansi-to-src wolf.ans >> $BASE
  11. ansi-to-src panther.ans >> $BASE
  12. ansi-to-src bat.ans >> $BASE
  13. ansi-to-src icu.ans >> $BASE
  14. # workaround
  15. if [ -f "$FINAL" ]; then
  16. # file exists
  17. diff -q $BASE $FINAL
  18. status=$?
  19. if [ $status -eq 0 ]; then
  20. echo "no change..."
  21. else
  22. mv -f $BASE $FINAL
  23. fi
  24. else
  25. # file doesn't exist, so no choice by to copy it over.
  26. mv -f $BASE $FINAL
  27. fi