INIT.2014-12-24
[INIT.git] / bin / ignore
blobcab4464a1d796e3b086393b9eaf4132ee8eb5eea
1 ########################################################################
2 #                                                                      #
3 #               This software is part of the ast package               #
4 #          Copyright (c) 1994-2011 AT&T Intellectual Property          #
5 #                      and is licensed under the                       #
6 #                 Eclipse Public License, Version 1.0                  #
7 #                    by AT&T Intellectual Property                     #
8 #                                                                      #
9 #                A copy of the License is available at                 #
10 #          http://www.eclipse.org/org/documents/epl-v10.html           #
11 #         (with md5 checksum b35adb5213ca9657e911e9befb180842)         #
12 #                                                                      #
13 #              Information and Software Systems Research               #
14 #                            AT&T Research                             #
15 #                           Florham Park NJ                            #
16 #                                                                      #
17 #               Glenn Fowler <glenn.s.fowler@gmail.com>                #
18 #                                                                      #
19 ########################################################################
20 # non-ksh script for the nmake ignore prefix
21 # @(#)ignore (AT&T Research) 1992-08-11
23 case $-:$BASH_VERSION in
24 *x*:[0123456789]*)      : bash set -x is broken :; set +ex ;;
25 esac
27 while   :
28 do      case $# in
29         0)      exit 0 ;;
30         esac
31         case $1 in
32         *=*)    case $RANDOM in
33                 $RANDOM)`echo $1 | sed "s/\\([^=]*\\)=\\(.*\\)/eval \\1='\\2'; export \\1/"` ;;
34                 *)      export "$1" ;;
35                 esac
36                 shift
37                 ;;
38         *)      break
39                 ;;
40         esac
41 done
42 "$@"
43 exit 0