chiark / gitweb /
do not remove *.cfm on make clean; do remove .alternately_*
[moebius2.git] / view-cyclicly
index 34e7087..09b2ebc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 set -e
 if [ $# -lt 3 ]; then
  echo >&2 'usage: view-cyclicly ./view-NN file-NN-a.cfm file-NN-b.cfm...'
@@ -9,7 +9,7 @@ viewer=$1; shift
 
 alt=".alternately"
 for f in "$@"; do
-       g="${g//_/__}"
+       g="${f//_/__}"
        g="${g//"/"/_:}"
        alt="${alt}_,$g"
 done