aboutsummaryrefslogtreecommitdiff
path: root/portal-gui/scripts
diff options
context:
space:
mode:
authorMichael Elkins <melkins@tislabs.com>2010-07-07 17:36:33 +0000
committerMichael Elkins <melkins@tislabs.com>2010-07-07 17:36:33 +0000
commitd65df76fb0a56fe0e26daa8be63d9599b0ecf29e (patch)
treeb67e26fdc38694b56a8c72312ccc2f856ccc9858 /portal-gui/scripts
parentef6584ea48e9ec99271fb0609d41ffb9c87dc9eb (diff)
added configure script to ease installation
svn path=/portal-gui/Makefile.in; revision=3357
Diffstat (limited to 'portal-gui/scripts')
-rwxr-xr-xportal-gui/scripts/helper6
-rwxr-xr-xportal-gui/scripts/helper.in12
l---------portal-gui/scripts/list_resources1
l---------portal-gui/scripts/load_csv1
-rw-r--r--portal-gui/scripts/runserver.in12
5 files changed, 24 insertions, 8 deletions
diff --git a/portal-gui/scripts/helper b/portal-gui/scripts/helper
deleted file mode 100755
index 7fd9e8c0..00000000
--- a/portal-gui/scripts/helper
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-NAME=`basename $0`
-BASE_PATH=`dirname $0`/../..
-export PYTHONPATH=$BASE_PATH/rpkid:$BASE_PATH/portal-gui
-export DJANGO_SETTINGS_MODULE=rpkigui.settings
-python `dirname $0`/${NAME}.py $*
diff --git a/portal-gui/scripts/helper.in b/portal-gui/scripts/helper.in
new file mode 100755
index 00000000..f08c12ef
--- /dev/null
+++ b/portal-gui/scripts/helper.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+# $Id$
+#
+# This is a wrapper script which sets the appropriate environment
+# variables for invoking the portal-gui python scripts.
+#
+# @configure_input@
+
+prefix=@prefix@
+export PYTHONPATH=@MYRPKIDIR@:@datarootdir@/@PACKAGE_NAME@
+export DJANGO_SETTINGS_MODULE=rpkigui.settings
+@PYTHON@ $src/scripts/$0.py $*
diff --git a/portal-gui/scripts/list_resources b/portal-gui/scripts/list_resources
deleted file mode 120000
index f0521c79..00000000
--- a/portal-gui/scripts/list_resources
+++ /dev/null
@@ -1 +0,0 @@
-helper \ No newline at end of file
diff --git a/portal-gui/scripts/load_csv b/portal-gui/scripts/load_csv
deleted file mode 120000
index f0521c79..00000000
--- a/portal-gui/scripts/load_csv
+++ /dev/null
@@ -1 +0,0 @@
-helper \ No newline at end of file
diff --git a/portal-gui/scripts/runserver.in b/portal-gui/scripts/runserver.in
new file mode 100644
index 00000000..f0d2d256
--- /dev/null
+++ b/portal-gui/scripts/runserver.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+# $Id$
+#
+# Helper script to start the Django test webserver for the portal-gui.
+#
+# @configure_input@
+
+prefix=@prefix@
+datarootdir=@datarootdir@
+PACKAGE_NAME=@PACKAGE_NAME@
+cd $datarootdir/$PACKAGE_NAME/rpkigui
+@PYTHON@ manage.py runserver --pythonpath=@MYRPKIDIR@ $*