~ubuntu-branches/ubuntu/lucid/tuxtype/lucid-proposed

« back to all changes in this revision

Viewing changes to install-sh

  • Committer: Bazaar Package Importer
  • Author(s): Oliver Grawert
  • Date: 2006-10-30 13:48:49 UTC
  • mfrom: (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20061030134849-5fdruftday0c02gs
Tags: 1.5.6.dfsg1-3ubuntu1
Merge from debian unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        echo "install:  no input file specified"
110
110
        exit 1
111
111
else
112
 
        true
 
112
        :
113
113
fi
114
114
 
115
115
if [ x"$dir_arg" != x ]; then
118
118
        
119
119
        if [ -d $dst ]; then
120
120
                instcmd=:
 
121
                chmodcmd=""
121
122
        else
122
 
                instcmd=mkdir
 
123
                instcmd=$mkdirprog
123
124
        fi
124
125
else
125
126
 
129
130
 
130
131
        if [ -f $src -o -d $src ]
131
132
        then
132
 
                true
 
133
                :
133
134
        else
134
135
                echo "install:  $src does not exist"
135
136
                exit 1
140
141
                echo "install:  no destination specified"
141
142
                exit 1
142
143
        else
143
 
                true
 
144
                :
144
145
        fi
145
146
 
146
147
# If destination is a directory, append the input filename; if your system
150
151
        then
151
152
                dst="$dst"/`basename $src`
152
153
        else
153
 
                true
 
154
                :
154
155
        fi
155
156
fi
156
157
 
162
163
 
163
164
# Skip lots of stat calls in the usual case.
164
165
if [ ! -d "$dstdir" ]; then
165
 
defaultIFS='    
166
 
'
 
166
defaultIFS='
 
167
        '
167
168
IFS="${IFS-${defaultIFS}}"
168
169
 
169
170
oIFS="${IFS}"
182
183
        then
183
184
                $mkdirprog "${pathcomp}"
184
185
        else
185
 
                true
 
186
                :
186
187
        fi
187
188
 
188
189
        pathcomp="${pathcomp}/"
193
194
then
194
195
        $doit $instcmd $dst &&
195
196
 
196
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
197
 
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
198
 
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
199
 
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
 
197
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
 
198
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
 
199
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
 
200
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
200
201
else
201
202
 
202
203
# If we're going to rename the final executable, determine the name now.
215
216
        then
216
217
                dstfile=`basename $dst`
217
218
        else
218
 
                true
 
219
                :
219
220
        fi
220
221
 
221
222
# Make a temp file name in the proper directory.
234
235
# ignore errors from any of these, just make sure not to ignore
235
236
# errors from the above "$doit $instcmd $src $dsttmp" command.
236
237
 
237
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
238
 
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
239
 
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
240
 
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
 
238
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
 
239
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
 
240
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
 
241
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
241
242
 
242
243
# Now rename the file to the real destination.
243
244