http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / molecules.sh
1 #!/bin/sh
2
3 TARGET=$1
4 shift
5 SRCS=$*
6
7 TMP=molecules.h.$$
8 rm -f $TMP
9
10 if [ -z "$UTILS_SRC" ]; then UTILS_SRC="../../utils"; fi
11
12 for f in $SRCS ; do
13   sh "$UTILS_SRC/ad2c" "$f" |
14     sed 's/",$/\\n"/' >> $TMP
15   echo ',' >> $TMP
16 done
17 mv $TMP $TARGET