bootstrap: install default domtool library when bootstrapping
authorClinton Ebadi <clinton@unknownlamer.org>
Sat, 11 Aug 2018 19:03:35 +0000 (15:03 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Sat, 11 Aug 2018 19:03:35 +0000 (15:03 -0400)
bootstrap/bootstrap
bootstrap/domtool-install-lib [new file with mode: 0755]

index db6750c..49207cb 100755 (executable)
@@ -23,6 +23,7 @@ if [ -z "`getent passwd domtool`" ]; then
 fi
 
 ./domtool-create-shared-root
+./domtool-install-lib
 ./domtool-create-local-root
 ./domtool-create-ca -force
 ./domtool-init-truststore
diff --git a/bootstrap/domtool-install-lib b/bootstrap/domtool-install-lib
new file mode 100755 (executable)
index 0000000..26c339f
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+# install domtool library
+SHAREDROOT=`../bin/domtool-config -path shared-root`
+
+if [ -z "$SHAREDROOT" ]; then
+    echo "shared-root not set, domtool not built?"
+    exit 1
+fi
+
+rsync -r ../lib/ $SHAREDROOT/lib