annotate tools/install.sh @ 487:5616a3d38d8e

[mq]: cross-ports
author Aleksandr Rybalko <ray@ddteam.net>
date Fri, 02 Nov 2012 15:36:00 +0200
parents fef55b0f6b99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
91
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
1 #! /bin/sh
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
2 #
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
3 # Copyright (c) 1999 Marcel Moolenaar
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
4 # All rights reserved.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
5 #
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
6 # Redistribution and use in source and binary forms, with or without
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
7 # modification, are permitted provided that the following conditions
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
8 # are met:
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
9 # 1. Redistributions of source code must retain the above copyright
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
10 # notice, this list of conditions and the following disclaimer
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
11 # in this position and unchanged.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
12 # 2. Redistributions in binary form must reproduce the above copyright
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
13 # notice, this list of conditions and the following disclaimer in the
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
14 # documentation and/or other materials provided with the distribution.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
15 # 3. The name of the author may not be used to endorse or promote products
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
16 # derived from this software without specific prior written permission
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
17 #
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
18 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
19 # IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
20 # OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
21 # IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
22 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
23 # NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
27 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
28 #
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
29 # $FreeBSD$
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
30
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
31 # parse install's options and ignore them completely.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
32 STRIPFLAG=""
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
33 while [ $# -gt 0 ]; do
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
34 case $1 in
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
35 -s) shift
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
36 STRIPFLAG="-s"
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
37 ;;
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
38 -[bCcMpS]) shift;;
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
39 -[Bfgmo]) shift; shift;;
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
40 -[Bfgmo]*) shift;;
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
41 *) break;
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
42 esac
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
43 done
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
44
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
45 # the remaining arguments are assumed to be files/dirs only.
fef55b0f6b99 many parts
ray@terran.dlink.ua
parents:
diff changeset
46 exec install ${STRIPFLAG} -p $*