summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-11 00:23:57 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:19:33 -0500
commitf9ff72cbda6b4e59448fd79ef9e12f264d48015f (patch)
treed0bff5e1f6ae70bb9ba3ec563c7ed03cf0cc5fa2 /source4/script
parentb2f132182174d13c8bcb535f62522687675947c2 (diff)
downloadsamba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.tar.gz
samba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.tar.bz2
samba-f9ff72cbda6b4e59448fd79ef9e12f264d48015f.zip
r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library - added install of js lib (This used to be commit 2a444dedbe44347268affc6458196f93ca7d372b)
Diffstat (limited to 'source4/script')
-rw-r--r--source4/script/installswat.sh7
-rwxr-xr-xsource4/script/tests/selftest.sh1
2 files changed, 8 insertions, 0 deletions
diff --git a/source4/script/installswat.sh b/source4/script/installswat.sh
index 1d89c2e86c..05245d8f06 100644
--- a/source4/script/installswat.sh
+++ b/source4/script/installswat.sh
@@ -2,6 +2,7 @@
SWATDIR=$1
SRCDIR=$2
+LIBDIR=$3
echo Installing swat files in $SWATDIR
@@ -26,6 +27,12 @@ installdir scripting/*.ejs scripting/*.esp scripting/*.js
installdir style/*.css
installdir docs/*.js
+
+echo "Installing js libs"
+cd ../source/scripting || exit 1
+mkdir -p $LIBDIR/js
+cp libjs/*.js $LIBDIR/js
+
cat << EOF
======================================================================
The swat files have been installed.
diff --git a/source4/script/tests/selftest.sh b/source4/script/tests/selftest.sh
index 2993b0590e..5e94ea13e2 100755
--- a/source4/script/tests/selftest.sh
+++ b/source4/script/tests/selftest.sh
@@ -68,6 +68,7 @@ cat >$CONFFILE<<EOF
pid directory = $PIDDIR
ncalrpc dir = $NCALRPCDIR
lock dir = $LOCKDIR
+ js include = $LIBDIR/js
name resolve order = bcast
interfaces = lo*