aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorjahoti <jahoti@tilde.team>2021-10-14 00:00:00 +0000
committerjahoti <jahoti@tilde.team>2021-10-14 00:00:00 +0000
commitfa5a0e799f5f8aa3115bbd4288af326dd77ccd0c (patch)
treed3f3acbc1d8bda3eb3b76cfb366d0cdc7caa9f2d /configure
parentef5ae6490afa35f79dd830e3c84fa8ab5e623a2e (diff)
downloadbrowser-extension-fa5a0e799f5f8aa3115bbd4288af326dd77ccd0c.tar.gz
browser-extension-fa5a0e799f5f8aa3115bbd4288af326dd77ccd0c.zip
Add (basic) install support
The extension can be installed if DESTDIR is supplied
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 4e5c038..fb56ec8 100755
--- a/configure
+++ b/configure
@@ -23,6 +23,7 @@ while [ "x$1" != x ]; do
case "$1" in
--srcdir=*) SRCDIR="$(echo "$1" | cut -c 10-)";;
--srcdir) SRCDIR="$2"; shift;;
+ "DESTDIR"=*) DESTDIR="$(echo "$1" | cut -c 9-)";;
"UPDATE_URL"=*) UPDATE_URL="$(echo "$1" | cut -c 12-)";;
--host=*) TARGET="$(echo "$1" | cut -c 8-)";;
--host) TARGET="$2"; shift;;
@@ -61,6 +62,7 @@ esac
# Write record.conf (LEAVE SRCDIR FIRST)
echo srcdir = "$SRCDIR" > record.conf
echo default_target = "$TARGET" >> record.conf
+echo DESTDIR = "$DESTDIR" >> record.conf
echo UPDATE_URL = "$UPDATE_URL" >> record.conf