annotate src/opus-1.3/install-sh @ 83:ae30d91d2ffe

Replace these with versions built using an older toolset (so as to avoid ABI compatibilities when linking on Ubuntu 14.04 for packaging purposes)
author Chris Cannam
date Fri, 07 Feb 2020 11:51:13 +0000
parents 7aeed7906520
children
rev   line source
Chris@69 1 #!/bin/sh
Chris@69 2 # install - install a program, script, or datafile
Chris@69 3
Chris@69 4 scriptversion=2016-01-11.22; # UTC
Chris@69 5
Chris@69 6 # This originates from X11R5 (mit/util/scripts/install.sh), which was
Chris@69 7 # later released in X11R6 (xc/config/util/install.sh) with the
Chris@69 8 # following copyright and license.
Chris@69 9 #
Chris@69 10 # Copyright (C) 1994 X Consortium
Chris@69 11 #
Chris@69 12 # Permission is hereby granted, free of charge, to any person obtaining a copy
Chris@69 13 # of this software and associated documentation files (the "Software"), to
Chris@69 14 # deal in the Software without restriction, including without limitation the
Chris@69 15 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
Chris@69 16 # sell copies of the Software, and to permit persons to whom the Software is
Chris@69 17 # furnished to do so, subject to the following conditions:
Chris@69 18 #
Chris@69 19 # The above copyright notice and this permission notice shall be included in
Chris@69 20 # all copies or substantial portions of the Software.
Chris@69 21 #
Chris@69 22 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
Chris@69 23 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
Chris@69 24 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
Chris@69 25 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
Chris@69 26 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
Chris@69 27 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Chris@69 28 #
Chris@69 29 # Except as contained in this notice, the name of the X Consortium shall not
Chris@69 30 # be used in advertising or otherwise to promote the sale, use or other deal-
Chris@69 31 # ings in this Software without prior written authorization from the X Consor-
Chris@69 32 # tium.
Chris@69 33 #
Chris@69 34 #
Chris@69 35 # FSF changes to this file are in the public domain.
Chris@69 36 #
Chris@69 37 # Calling this script install-sh is preferred over install.sh, to prevent
Chris@69 38 # 'make' implicit rules from creating a file called install from it
Chris@69 39 # when there is no Makefile.
Chris@69 40 #
Chris@69 41 # This script is compatible with the BSD install script, but was written
Chris@69 42 # from scratch.
Chris@69 43
Chris@69 44 tab=' '
Chris@69 45 nl='
Chris@69 46 '
Chris@69 47 IFS=" $tab$nl"
Chris@69 48
Chris@69 49 # Set DOITPROG to "echo" to test this script.
Chris@69 50
Chris@69 51 doit=${DOITPROG-}
Chris@69 52 doit_exec=${doit:-exec}
Chris@69 53
Chris@69 54 # Put in absolute file names if you don't have them in your path;
Chris@69 55 # or use environment vars.
Chris@69 56
Chris@69 57 chgrpprog=${CHGRPPROG-chgrp}
Chris@69 58 chmodprog=${CHMODPROG-chmod}
Chris@69 59 chownprog=${CHOWNPROG-chown}
Chris@69 60 cmpprog=${CMPPROG-cmp}
Chris@69 61 cpprog=${CPPROG-cp}
Chris@69 62 mkdirprog=${MKDIRPROG-mkdir}
Chris@69 63 mvprog=${MVPROG-mv}
Chris@69 64 rmprog=${RMPROG-rm}
Chris@69 65 stripprog=${STRIPPROG-strip}
Chris@69 66
Chris@69 67 posix_mkdir=
Chris@69 68
Chris@69 69 # Desired mode of installed file.
Chris@69 70 mode=0755
Chris@69 71
Chris@69 72 chgrpcmd=
Chris@69 73 chmodcmd=$chmodprog
Chris@69 74 chowncmd=
Chris@69 75 mvcmd=$mvprog
Chris@69 76 rmcmd="$rmprog -f"
Chris@69 77 stripcmd=
Chris@69 78
Chris@69 79 src=
Chris@69 80 dst=
Chris@69 81 dir_arg=
Chris@69 82 dst_arg=
Chris@69 83
Chris@69 84 copy_on_change=false
Chris@69 85 is_target_a_directory=possibly
Chris@69 86
Chris@69 87 usage="\
Chris@69 88 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
Chris@69 89 or: $0 [OPTION]... SRCFILES... DIRECTORY
Chris@69 90 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
Chris@69 91 or: $0 [OPTION]... -d DIRECTORIES...
Chris@69 92
Chris@69 93 In the 1st form, copy SRCFILE to DSTFILE.
Chris@69 94 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
Chris@69 95 In the 4th, create DIRECTORIES.
Chris@69 96
Chris@69 97 Options:
Chris@69 98 --help display this help and exit.
Chris@69 99 --version display version info and exit.
Chris@69 100
Chris@69 101 -c (ignored)
Chris@69 102 -C install only if different (preserve the last data modification time)
Chris@69 103 -d create directories instead of installing files.
Chris@69 104 -g GROUP $chgrpprog installed files to GROUP.
Chris@69 105 -m MODE $chmodprog installed files to MODE.
Chris@69 106 -o USER $chownprog installed files to USER.
Chris@69 107 -s $stripprog installed files.
Chris@69 108 -t DIRECTORY install into DIRECTORY.
Chris@69 109 -T report an error if DSTFILE is a directory.
Chris@69 110
Chris@69 111 Environment variables override the default commands:
Chris@69 112 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
Chris@69 113 RMPROG STRIPPROG
Chris@69 114 "
Chris@69 115
Chris@69 116 while test $# -ne 0; do
Chris@69 117 case $1 in
Chris@69 118 -c) ;;
Chris@69 119
Chris@69 120 -C) copy_on_change=true;;
Chris@69 121
Chris@69 122 -d) dir_arg=true;;
Chris@69 123
Chris@69 124 -g) chgrpcmd="$chgrpprog $2"
Chris@69 125 shift;;
Chris@69 126
Chris@69 127 --help) echo "$usage"; exit $?;;
Chris@69 128
Chris@69 129 -m) mode=$2
Chris@69 130 case $mode in
Chris@69 131 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
Chris@69 132 echo "$0: invalid mode: $mode" >&2
Chris@69 133 exit 1;;
Chris@69 134 esac
Chris@69 135 shift;;
Chris@69 136
Chris@69 137 -o) chowncmd="$chownprog $2"
Chris@69 138 shift;;
Chris@69 139
Chris@69 140 -s) stripcmd=$stripprog;;
Chris@69 141
Chris@69 142 -t)
Chris@69 143 is_target_a_directory=always
Chris@69 144 dst_arg=$2
Chris@69 145 # Protect names problematic for 'test' and other utilities.
Chris@69 146 case $dst_arg in
Chris@69 147 -* | [=\(\)!]) dst_arg=./$dst_arg;;
Chris@69 148 esac
Chris@69 149 shift;;
Chris@69 150
Chris@69 151 -T) is_target_a_directory=never;;
Chris@69 152
Chris@69 153 --version) echo "$0 $scriptversion"; exit $?;;
Chris@69 154
Chris@69 155 --) shift
Chris@69 156 break;;
Chris@69 157
Chris@69 158 -*) echo "$0: invalid option: $1" >&2
Chris@69 159 exit 1;;
Chris@69 160
Chris@69 161 *) break;;
Chris@69 162 esac
Chris@69 163 shift
Chris@69 164 done
Chris@69 165
Chris@69 166 # We allow the use of options -d and -T together, by making -d
Chris@69 167 # take the precedence; this is for compatibility with GNU install.
Chris@69 168
Chris@69 169 if test -n "$dir_arg"; then
Chris@69 170 if test -n "$dst_arg"; then
Chris@69 171 echo "$0: target directory not allowed when installing a directory." >&2
Chris@69 172 exit 1
Chris@69 173 fi
Chris@69 174 fi
Chris@69 175
Chris@69 176 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
Chris@69 177 # When -d is used, all remaining arguments are directories to create.
Chris@69 178 # When -t is used, the destination is already specified.
Chris@69 179 # Otherwise, the last argument is the destination. Remove it from $@.
Chris@69 180 for arg
Chris@69 181 do
Chris@69 182 if test -n "$dst_arg"; then
Chris@69 183 # $@ is not empty: it contains at least $arg.
Chris@69 184 set fnord "$@" "$dst_arg"
Chris@69 185 shift # fnord
Chris@69 186 fi
Chris@69 187 shift # arg
Chris@69 188 dst_arg=$arg
Chris@69 189 # Protect names problematic for 'test' and other utilities.
Chris@69 190 case $dst_arg in
Chris@69 191 -* | [=\(\)!]) dst_arg=./$dst_arg;;
Chris@69 192 esac
Chris@69 193 done
Chris@69 194 fi
Chris@69 195
Chris@69 196 if test $# -eq 0; then
Chris@69 197 if test -z "$dir_arg"; then
Chris@69 198 echo "$0: no input file specified." >&2
Chris@69 199 exit 1
Chris@69 200 fi
Chris@69 201 # It's OK to call 'install-sh -d' without argument.
Chris@69 202 # This can happen when creating conditional directories.
Chris@69 203 exit 0
Chris@69 204 fi
Chris@69 205
Chris@69 206 if test -z "$dir_arg"; then
Chris@69 207 if test $# -gt 1 || test "$is_target_a_directory" = always; then
Chris@69 208 if test ! -d "$dst_arg"; then
Chris@69 209 echo "$0: $dst_arg: Is not a directory." >&2
Chris@69 210 exit 1
Chris@69 211 fi
Chris@69 212 fi
Chris@69 213 fi
Chris@69 214
Chris@69 215 if test -z "$dir_arg"; then
Chris@69 216 do_exit='(exit $ret); exit $ret'
Chris@69 217 trap "ret=129; $do_exit" 1
Chris@69 218 trap "ret=130; $do_exit" 2
Chris@69 219 trap "ret=141; $do_exit" 13
Chris@69 220 trap "ret=143; $do_exit" 15
Chris@69 221
Chris@69 222 # Set umask so as not to create temps with too-generous modes.
Chris@69 223 # However, 'strip' requires both read and write access to temps.
Chris@69 224 case $mode in
Chris@69 225 # Optimize common cases.
Chris@69 226 *644) cp_umask=133;;
Chris@69 227 *755) cp_umask=22;;
Chris@69 228
Chris@69 229 *[0-7])
Chris@69 230 if test -z "$stripcmd"; then
Chris@69 231 u_plus_rw=
Chris@69 232 else
Chris@69 233 u_plus_rw='% 200'
Chris@69 234 fi
Chris@69 235 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
Chris@69 236 *)
Chris@69 237 if test -z "$stripcmd"; then
Chris@69 238 u_plus_rw=
Chris@69 239 else
Chris@69 240 u_plus_rw=,u+rw
Chris@69 241 fi
Chris@69 242 cp_umask=$mode$u_plus_rw;;
Chris@69 243 esac
Chris@69 244 fi
Chris@69 245
Chris@69 246 for src
Chris@69 247 do
Chris@69 248 # Protect names problematic for 'test' and other utilities.
Chris@69 249 case $src in
Chris@69 250 -* | [=\(\)!]) src=./$src;;
Chris@69 251 esac
Chris@69 252
Chris@69 253 if test -n "$dir_arg"; then
Chris@69 254 dst=$src
Chris@69 255 dstdir=$dst
Chris@69 256 test -d "$dstdir"
Chris@69 257 dstdir_status=$?
Chris@69 258 else
Chris@69 259
Chris@69 260 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
Chris@69 261 # might cause directories to be created, which would be especially bad
Chris@69 262 # if $src (and thus $dsttmp) contains '*'.
Chris@69 263 if test ! -f "$src" && test ! -d "$src"; then
Chris@69 264 echo "$0: $src does not exist." >&2
Chris@69 265 exit 1
Chris@69 266 fi
Chris@69 267
Chris@69 268 if test -z "$dst_arg"; then
Chris@69 269 echo "$0: no destination specified." >&2
Chris@69 270 exit 1
Chris@69 271 fi
Chris@69 272 dst=$dst_arg
Chris@69 273
Chris@69 274 # If destination is a directory, append the input filename; won't work
Chris@69 275 # if double slashes aren't ignored.
Chris@69 276 if test -d "$dst"; then
Chris@69 277 if test "$is_target_a_directory" = never; then
Chris@69 278 echo "$0: $dst_arg: Is a directory" >&2
Chris@69 279 exit 1
Chris@69 280 fi
Chris@69 281 dstdir=$dst
Chris@69 282 dst=$dstdir/`basename "$src"`
Chris@69 283 dstdir_status=0
Chris@69 284 else
Chris@69 285 dstdir=`dirname "$dst"`
Chris@69 286 test -d "$dstdir"
Chris@69 287 dstdir_status=$?
Chris@69 288 fi
Chris@69 289 fi
Chris@69 290
Chris@69 291 obsolete_mkdir_used=false
Chris@69 292
Chris@69 293 if test $dstdir_status != 0; then
Chris@69 294 case $posix_mkdir in
Chris@69 295 '')
Chris@69 296 # Create intermediate dirs using mode 755 as modified by the umask.
Chris@69 297 # This is like FreeBSD 'install' as of 1997-10-28.
Chris@69 298 umask=`umask`
Chris@69 299 case $stripcmd.$umask in
Chris@69 300 # Optimize common cases.
Chris@69 301 *[2367][2367]) mkdir_umask=$umask;;
Chris@69 302 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
Chris@69 303
Chris@69 304 *[0-7])
Chris@69 305 mkdir_umask=`expr $umask + 22 \
Chris@69 306 - $umask % 100 % 40 + $umask % 20 \
Chris@69 307 - $umask % 10 % 4 + $umask % 2
Chris@69 308 `;;
Chris@69 309 *) mkdir_umask=$umask,go-w;;
Chris@69 310 esac
Chris@69 311
Chris@69 312 # With -d, create the new directory with the user-specified mode.
Chris@69 313 # Otherwise, rely on $mkdir_umask.
Chris@69 314 if test -n "$dir_arg"; then
Chris@69 315 mkdir_mode=-m$mode
Chris@69 316 else
Chris@69 317 mkdir_mode=
Chris@69 318 fi
Chris@69 319
Chris@69 320 posix_mkdir=false
Chris@69 321 case $umask in
Chris@69 322 *[123567][0-7][0-7])
Chris@69 323 # POSIX mkdir -p sets u+wx bits regardless of umask, which
Chris@69 324 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
Chris@69 325 ;;
Chris@69 326 *)
Chris@69 327 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
Chris@69 328 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
Chris@69 329
Chris@69 330 if (umask $mkdir_umask &&
Chris@69 331 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
Chris@69 332 then
Chris@69 333 if test -z "$dir_arg" || {
Chris@69 334 # Check for POSIX incompatibilities with -m.
Chris@69 335 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
Chris@69 336 # other-writable bit of parent directory when it shouldn't.
Chris@69 337 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
Chris@69 338 ls_ld_tmpdir=`ls -ld "$tmpdir"`
Chris@69 339 case $ls_ld_tmpdir in
Chris@69 340 d????-?r-*) different_mode=700;;
Chris@69 341 d????-?--*) different_mode=755;;
Chris@69 342 *) false;;
Chris@69 343 esac &&
Chris@69 344 $mkdirprog -m$different_mode -p -- "$tmpdir" && {
Chris@69 345 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
Chris@69 346 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
Chris@69 347 }
Chris@69 348 }
Chris@69 349 then posix_mkdir=:
Chris@69 350 fi
Chris@69 351 rmdir "$tmpdir/d" "$tmpdir"
Chris@69 352 else
Chris@69 353 # Remove any dirs left behind by ancient mkdir implementations.
Chris@69 354 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
Chris@69 355 fi
Chris@69 356 trap '' 0;;
Chris@69 357 esac;;
Chris@69 358 esac
Chris@69 359
Chris@69 360 if
Chris@69 361 $posix_mkdir && (
Chris@69 362 umask $mkdir_umask &&
Chris@69 363 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
Chris@69 364 )
Chris@69 365 then :
Chris@69 366 else
Chris@69 367
Chris@69 368 # The umask is ridiculous, or mkdir does not conform to POSIX,
Chris@69 369 # or it failed possibly due to a race condition. Create the
Chris@69 370 # directory the slow way, step by step, checking for races as we go.
Chris@69 371
Chris@69 372 case $dstdir in
Chris@69 373 /*) prefix='/';;
Chris@69 374 [-=\(\)!]*) prefix='./';;
Chris@69 375 *) prefix='';;
Chris@69 376 esac
Chris@69 377
Chris@69 378 oIFS=$IFS
Chris@69 379 IFS=/
Chris@69 380 set -f
Chris@69 381 set fnord $dstdir
Chris@69 382 shift
Chris@69 383 set +f
Chris@69 384 IFS=$oIFS
Chris@69 385
Chris@69 386 prefixes=
Chris@69 387
Chris@69 388 for d
Chris@69 389 do
Chris@69 390 test X"$d" = X && continue
Chris@69 391
Chris@69 392 prefix=$prefix$d
Chris@69 393 if test -d "$prefix"; then
Chris@69 394 prefixes=
Chris@69 395 else
Chris@69 396 if $posix_mkdir; then
Chris@69 397 (umask=$mkdir_umask &&
Chris@69 398 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
Chris@69 399 # Don't fail if two instances are running concurrently.
Chris@69 400 test -d "$prefix" || exit 1
Chris@69 401 else
Chris@69 402 case $prefix in
Chris@69 403 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
Chris@69 404 *) qprefix=$prefix;;
Chris@69 405 esac
Chris@69 406 prefixes="$prefixes '$qprefix'"
Chris@69 407 fi
Chris@69 408 fi
Chris@69 409 prefix=$prefix/
Chris@69 410 done
Chris@69 411
Chris@69 412 if test -n "$prefixes"; then
Chris@69 413 # Don't fail if two instances are running concurrently.
Chris@69 414 (umask $mkdir_umask &&
Chris@69 415 eval "\$doit_exec \$mkdirprog $prefixes") ||
Chris@69 416 test -d "$dstdir" || exit 1
Chris@69 417 obsolete_mkdir_used=true
Chris@69 418 fi
Chris@69 419 fi
Chris@69 420 fi
Chris@69 421
Chris@69 422 if test -n "$dir_arg"; then
Chris@69 423 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
Chris@69 424 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
Chris@69 425 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
Chris@69 426 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
Chris@69 427 else
Chris@69 428
Chris@69 429 # Make a couple of temp file names in the proper directory.
Chris@69 430 dsttmp=$dstdir/_inst.$$_
Chris@69 431 rmtmp=$dstdir/_rm.$$_
Chris@69 432
Chris@69 433 # Trap to clean up those temp files at exit.
Chris@69 434 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
Chris@69 435
Chris@69 436 # Copy the file name to the temp name.
Chris@69 437 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
Chris@69 438
Chris@69 439 # and set any options; do chmod last to preserve setuid bits.
Chris@69 440 #
Chris@69 441 # If any of these fail, we abort the whole thing. If we want to
Chris@69 442 # ignore errors from any of these, just make sure not to ignore
Chris@69 443 # errors from the above "$doit $cpprog $src $dsttmp" command.
Chris@69 444 #
Chris@69 445 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
Chris@69 446 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
Chris@69 447 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
Chris@69 448 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
Chris@69 449
Chris@69 450 # If -C, don't bother to copy if it wouldn't change the file.
Chris@69 451 if $copy_on_change &&
Chris@69 452 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
Chris@69 453 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
Chris@69 454 set -f &&
Chris@69 455 set X $old && old=:$2:$4:$5:$6 &&
Chris@69 456 set X $new && new=:$2:$4:$5:$6 &&
Chris@69 457 set +f &&
Chris@69 458 test "$old" = "$new" &&
Chris@69 459 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
Chris@69 460 then
Chris@69 461 rm -f "$dsttmp"
Chris@69 462 else
Chris@69 463 # Rename the file to the real destination.
Chris@69 464 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
Chris@69 465
Chris@69 466 # The rename failed, perhaps because mv can't rename something else
Chris@69 467 # to itself, or perhaps because mv is so ancient that it does not
Chris@69 468 # support -f.
Chris@69 469 {
Chris@69 470 # Now remove or move aside any old file at destination location.
Chris@69 471 # We try this two ways since rm can't unlink itself on some
Chris@69 472 # systems and the destination file might be busy for other
Chris@69 473 # reasons. In this case, the final cleanup might fail but the new
Chris@69 474 # file should still install successfully.
Chris@69 475 {
Chris@69 476 test ! -f "$dst" ||
Chris@69 477 $doit $rmcmd -f "$dst" 2>/dev/null ||
Chris@69 478 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
Chris@69 479 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
Chris@69 480 } ||
Chris@69 481 { echo "$0: cannot unlink or rename $dst" >&2
Chris@69 482 (exit 1); exit 1
Chris@69 483 }
Chris@69 484 } &&
Chris@69 485
Chris@69 486 # Now rename the file to the real destination.
Chris@69 487 $doit $mvcmd "$dsttmp" "$dst"
Chris@69 488 }
Chris@69 489 fi || exit 1
Chris@69 490
Chris@69 491 trap '' 0
Chris@69 492 fi
Chris@69 493 done
Chris@69 494
Chris@69 495 # Local variables:
Chris@69 496 # eval: (add-hook 'write-file-hooks 'time-stamp)
Chris@69 497 # time-stamp-start: "scriptversion="
Chris@69 498 # time-stamp-format: "%:y-%02m-%02d.%02H"
Chris@69 499 # time-stamp-time-zone: "UTC0"
Chris@69 500 # time-stamp-end: "; # UTC"
Chris@69 501 # End: