findmissing: Unify command shell scripts

All command shell scripts can use the same code, using the command name
to distinguish the underlying python script. Use a single script and
symlink actual commands to it.

BUG=None
TEST=Run commands

Change-Id: I2d77fdfffd17042ab0aa7ae5fdaa7050eebcbd6d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2252419
Reviewed-by: Curtis Malainey <cujomalainey@chromium.org>
Commit-Queue: Guenter Roeck <groeck@chromium.org>
Tested-by: Guenter Roeck <groeck@chromium.org>
diff --git a/contrib/findmissing/findmissing b/contrib/findmissing/findmissing
deleted file mode 100755
index fd00d67..0000000
--- a/contrib/findmissing/findmissing
+++ /dev/null
@@ -1,20 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2020 The Chromium OS Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-
-FINDMISSING_DIR="$(cd $(dirname $0); pwd)"
-
-cd "${FINDMISSING_DIR}"
-if [[ ! -e env/bin/activate ]]; then
-    echo "Environment is not set up to run findmissing client."
-    echo "Please run: ./scripts/local/local_database_setup.sh and repeat this command"
-    exit 1
-fi
-
-source env/bin/activate
-
-# Run findmissing script with parameters in virtual env
-./findmissing.py "$@"
diff --git a/contrib/findmissing/findmissing b/contrib/findmissing/findmissing
new file mode 120000
index 0000000..68ed447
--- /dev/null
+++ b/contrib/findmissing/findmissing
@@ -0,0 +1 @@
+findmissing_command.sh
\ No newline at end of file
diff --git a/contrib/findmissing/getopen b/contrib/findmissing/findmissing_command.sh
similarity index 100%
rename from contrib/findmissing/getopen
rename to contrib/findmissing/findmissing_command.sh
diff --git a/contrib/findmissing/getopen b/contrib/findmissing/getopen
new file mode 120000
index 0000000..68ed447
--- /dev/null
+++ b/contrib/findmissing/getopen
@@ -0,0 +1 @@
+findmissing_command.sh
\ No newline at end of file