Stop the analysis pass in Loopy's redraw routine from being
[sgt/puzzles] / makedist.sh
index bc29595..fcf5b4e 100755 (executable)
@@ -15,7 +15,7 @@ case "$#" in
     if test "x$rev" = "xexported"; then rev=; fi
     ;;
   *)
-    case "$1" in *[!0-9]*) echo "Malformed revision number '$1'">&2;exit 1;;esac
+    case "$1" in *[!0-9M]*) echo "Malformed revision number '$1'">&2;exit 1;;esac
     rev="$1"
     ;;
 esac
@@ -32,6 +32,7 @@ perl mkfiles.pl
 
 mkdir tmp.$$
 mkdir tmp.$$/puzzles$arcsuffix
+mkdir tmp.$$/puzzles$arcsuffix/icons
 
 # Build Windows Help and text versions of the manual for convenience.
 halibut --winhelp=puzzles.hlp --text=puzzles.txt puzzles.but
@@ -39,10 +40,15 @@ halibut --winhelp=puzzles.hlp --text=puzzles.txt puzzles.but
 # Build a text version of the HACKING document.
 halibut --text=HACKING devel.but
 
-for i in *.c *.m *.h *.but *.plist *.icns LICENCE README Recipe \
-  mkfiles.pl Makefile Makefile.* \
-  HACKING puzzles.txt puzzles.hlp puzzles.cnt; do
-  ln -s ../../$i tmp.$$/puzzles$arcsuffix
+for i in *.c *.m *.h *.R *.rc *.but *.plist *.icns LICENCE README Recipe \
+  *.rc2 mkfiles.pl Makefile Makefile.* \
+  HACKING puzzles.txt puzzles.hlp puzzles.cnt puzzles.chm \
+  icons/Makefile icons/*.{sav,pl,sh} icons/win16pal.xpm \
+  icons/*.png icons/*.ico icons/*.rc icons/*.c; do
+  case $i in
+    */*) ln -s ../../../$i tmp.$$/puzzles$arcsuffix/$i;;
+    *)   ln -s ../../$i tmp.$$/puzzles$arcsuffix/$i;;
+  esac
   if test "x$ver" != "x"; then
     md5sum $i >> tmp.$$/puzzles$arcsuffix/manifest
   fi