http://slackware.bholcomb.com/slackware/slackware-11.0/source/xap/xscreensaver/xscree...
[xscreensaver] / hacks / glx / molecules.sh
diff --git a/hacks/glx/molecules.sh b/hacks/glx/molecules.sh
new file mode 100755 (executable)
index 0000000..dbae220
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+TARGET=$1
+shift
+SRCS=$*
+
+TMP=molecules.h.$$
+rm -f $TMP
+
+if [ -z "$UTILS_SRC" ]; then UTILS_SRC="../../utils"; fi
+
+for f in $SRCS ; do
+  sh "$UTILS_SRC/ad2c" "$f" |
+    sed 's/",$/\\n"/' >> $TMP
+  echo ',' >> $TMP
+done
+mv $TMP $TARGET