File: __mt

package info (click to toggle)
afbackup 3.3.8.1beta2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,128 kB
  • ctags: 3,370
  • sloc: ansic: 46,932; sh: 4,654; tcl: 4,199; makefile: 536; csh: 416; perl: 133; sed: 93
file content (26 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh
################### Start of $RCSfile: __mt,v $ ##################
#
# $Source: /home/alb/afbackup/afbackup-3.3.8beta7/RCS/__mt,v $
# $Id: __mt,v 1.2 2004/07/08 20:34:42 alb Exp alb $
# $Date: 2004/07/08 20:34:42 $
# $Author: alb $
#
#
####### description ################################################
#
#
#
####################################################################

n=$#
if [ $n -ge 2 ] ; then
  m=`expr $n - 1`
  eval cmd='$'$m
  eval num='$'$n
  if [ '(' "$cmd" = "bsf" -o "$cmd" = "fsf" -o "$cmd" = "fsr" -o "$cmd" = "bsr" ')' -a $num -eq 0 ] ; then
    exit 0
  fi
fi

exec mt "$@"