projects
/
xscreensaver
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
From http://www.jwz.org/xscreensaver/xscreensaver-5.18.tar.gz
[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
18
if cmp -s $TMP $TARGET ; then
19
rm $TMP
20
else
21
mv $TMP $TARGET
22
fi