/[resiprocate]/main/build/mkbuildlinks
ViewVC logotype

Contents of /main/build/mkbuildlinks

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5295 - (show annotations) (download)
Mon Aug 22 00:30:05 2005 UTC (14 years, 3 months ago) by jason
File size: 3594 byte(s)
merged 5270:HEAD from b-directory-reorg
1 #!/bin/sh
2
3 # ====================================================================
4 # The Vovida Software License, Version 1.0
5 #
6 # Copyright (c) 2000 Vovida Networks, Inc. All rights reserved.
7 #
8 # Redistribution and use in source and binary forms, with or without
9 # modification, are permitted provided that the following conditions
10 # are met:
11 #
12 # 1. Redistributions of source code must retain the above copyright
13 # notice, this list of conditions and the following disclaimer.
14 #
15 # 2. Redistributions in binary form must reproduce the above copyright
16 # notice, this list of conditions and the following disclaimer in
17 # the documentation and/or other materials provided with the
18 # distribution.
19 #
20 # 3. The names "VOCAL", "Vovida Open Communication Application Library",
21 # and "Vovida Open Communication Application Library (VOCAL)" must
22 # not be used to endorse or promote products derived from this
23 # software without prior written permission. For written
24 # permission, please contact vocal\@vovida.org.
25 #
26 # 4. Products derived from this software may not be called "VOCAL", nor
27 # may "VOCAL" appear in their name, without prior written
28 # permission of Vovida Networks, Inc.
29 #
30 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED
31 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
32 # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND
33 # NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL VOVIDA
34 # NETWORKS, INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT DAMAGES
35 # IN EXCESS OF $1,000, NOR FOR ANY INDIRECT, INCIDENTAL, SPECIAL,
36 # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
37 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
38 # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
39 # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
41 # USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
42 # DAMAGE.
43 #
44 # ====================================================================
45 #
46 # This software consists of voluntary contributions made by Vovida
47 # Networks, Inc. and many individuals on behalf of Vovida Networks,
48 # Inc. For more information on Vovida Networks, Inc., please see
49 # <http://www.vovida.org/>.
50
51 # this version of mkbuilddir may not work with anything other than Linux
52
53
54 . $2
55
56 # echo ${USE_BUILDDIR}
57
58 if [ "x${USE_BUILDDIR}" = "xno" ]
59 then
60 if [ `uname` = 'SunOS' ]
61 then
62 if [ -h $1 ]
63 then
64 /bin/rm $1
65 fi
66 else
67 if [ -L $1 ]
68 then
69 /bin/rm $1
70 fi
71 fi
72
73 mkdir -p $1
74 exit
75 fi
76
77
78 localdir=${USE_BUILDDIR}/`pwd`/$1
79
80 #echo $localdir
81
82 if [ ! -d ${USE_BUILDDIR}/ ]
83 then
84 mkdir -p ${USE_BUILDDIR}
85 chmod a+rwx ${USE_BUILDDIR}
86 fi
87
88 if [ ! -d $localdir ]
89 then
90 echo "creating $localdir"
91 mkdir -p $localdir
92 fi
93
94 if [ `uname` = 'SunOS' ]
95 then
96 if [ ! -h $1 ]
97 then
98 echo "object directory is not a link -- making into link"
99 /bin/rm -rf $1
100 ln -s $localdir $1
101 # wire down the host
102 echo `hostname` > .link_host
103 fi
104 else
105 if [ ! -L $1 ]
106 then
107 echo "object directory is not a link -- making into link"
108 /bin/rm -rf $1
109 ln -s $localdir $1
110 # wire down the host
111 echo `hostname` > .link_host
112 fi
113 fi
114 if [ `hostname` != `cat .link_host` ]
115 then
116 echo "**** ****"
117 echo "**** ****"
118 echo "**** WARNING: you are building on a different host ****"
119 echo "**** ****"
120 echo "**** ****"
121 fi
122

Properties

Name Value
svn:executable *

webmaster AT resiprocate DOT org
ViewVC Help
Powered by ViewVC 1.1.27