chiark / gitweb /
do not remove *.cfm on make clean; do remove .alternately_*
authorIan Jackson <ian@davenant.relativity.greenend.org.uk>
Sun, 12 Oct 2008 19:41:57 +0000 (20:41 +0100)
committerIan Jackson <ian@davenant.relativity.greenend.org.uk>
Sun, 12 Oct 2008 19:41:57 +0000 (20:41 +0100)
Makefile
view-cyclicly

index 50badd1..af43f43 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -121,10 +121,10 @@ interpolate+%.o: interpolate.c
 clean:
                rm -f prime.data $(TARGETS)
                rm -f *.o *.new *.tmp *.rej *.orig core vgcore.* *~
-               rm -f *.d *.cfm
+               rm -f *.d .alternately_*
 
 realclean:     clean
-               rm -f *.CFM
+               rm -f *.cfm *.CFM
 
 %.d:
 
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