By moving the call to Load() up in SearchProvider::Start(), we are giving a chance...
[chromium-blink-merge.git] / third_party / lcov / bin / install.sh
blob9d4a9daf22e05dbbddcd4456c5c9c84b8b0f1f73
1 #!/bin/bash
3 # install.sh [--uninstall] sourcefile targetfile
7 # Check for uninstall option
8 if test "x$1" == "x--uninstall" ; then
9 UNINSTALL=true
10 SOURCE=$2
11 TARGET=$3
12 else
13 UNINSTALL=false
14 SOURCE=$1
15 TARGET=$2
18 # Check usage
19 if test -z "$SOURCE" || test -z "$TARGET" ; then
20 echo Usage: install.sh [--uninstall] source target >&2
21 exit 1
26 # do_install(SOURCE_FILE, TARGET_FILE)
29 do_install()
31 local SOURCE=$1
32 local TARGET=$2
34 install -D $SOURCE $TARGET
39 # do_uninstall(SOURCE_FILE, TARGET_FILE)
42 do_uninstall()
44 local SOURCE=$1
45 local TARGET=$2
47 # Does target exist?
48 if test -r $TARGET ; then
49 # Is target of the same version as this package?
50 if diff $SOURCE $TARGET >/dev/null; then
51 rm -f $TARGET
52 else
53 echo WARNING: Skipping uninstall for $TARGET - versions differ! >&2
55 else
56 echo WARNING: Skipping uninstall for $TARGET - not installed! >&2
61 # Call sub routine
62 if $UNINSTALL ; then
63 do_uninstall $SOURCE $TARGET
64 else
65 do_install $SOURCE $TARGET
68 exit 0