chiark
/
gitweb
/
~ian
/
moebius2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
really edgewise vertex displacement - new calculations, experimental
[moebius2.git]
/
view-cyclicly
1
#!/bin/sh
2
set -e
3
if [ $# -lt 3 ]; then
4
echo >&2 'usage: view-cyclicly ./view-NN file-NN-a.cfm file-NN-b.cfm...'
5
exit 1
6
fi
7
8
viewer=$1; shift
9
10
alt=".alternately"
11
for f in "$@"; do
12
g="${g//_/__}"
13
g="${g//"/"/_:}"
14
alt="${alt}_,$g"
15
done
16
17
ln -sf -- "$1" "$alt"
18
"$viewer" "$alt" &
19
20
while sleep 1.0; do
21
justhad="$1"; shift; set -- "$@" "$justhad"
22
ln -sf -- "$1" "$alt"
23
done