123456789101112131415161718192021222324252627282930313233 |
- #!/bin/bash
- BASE=.$$images.h
- FINAL=images.h
- export PATH=$PATH:build:.
- # echo $PATH
- ansi-to-src skull.ans > $BASE
- ansi-to-src skull-blink.ans >> $BASE
- ansi-to-src ghead.ans >> $BASE
- ansi-to-src ghost.ans >> $BASE
- ansi-to-src wolf.ans >> $BASE
- ansi-to-src panther.ans >> $BASE
- ansi-to-src bat.ans >> $BASE
- ansi-to-src icu.ans >> $BASE
- # workaround
- if [ -f "$FINAL" ]; then
- # file exists
- diff -q $BASE $FINAL
- status=$?
- if [ $status -eq 0 ]; then
- echo "no change..."
- else
- mv -f $BASE $FINAL
- fi
- else
- # file doesn't exist, so no choice by to copy it over.
- mv -f $BASE $FINAL
- fi
|