Initial Commit
[packages] / xemacs-packages / ess / etc / backbugs
1 #!/bin/sh
2 # ESS[BUGS]:  02/18/2004
3 # runs BUGS taking commands from command file
4 #
5
6 case `config.guess` in
7     i?86-pc-cygwin)     BUGS=bugs0603.exe;;
8     i?86-*-linux*)      BUGS=bugs0600.linux;;
9     sparc-sun-solaris*) BUGS=bugs603.sparc;;
10     mips-sgi-irix*)     BUGS=bugs06.sgi;;
11 esac
12
13 case $# in
14      1) $BUGS 32 bugs $1
15         cp -fp bugs.log bugs.bog
16         chmod -w bugs.bog
17         ;;
18      2) $BUGS 32 $1 $2
19         cp -fp $1.log $1.bog
20         chmod -w $1.bog
21         ;;
22      3) $BUGS $1 $2 $3
23         cp -fp $2.log $2.bog
24         chmod -w $2.bog
25         ;;
26      *) echo "usage: $0 [[number_of_bins] default_output_name] command_file";;
27 esac