diff options
author | Michael Elkins <melkins@tislabs.com> | 2010-07-07 17:36:33 +0000 |
---|---|---|
committer | Michael Elkins <melkins@tislabs.com> | 2010-07-07 17:36:33 +0000 |
commit | d65df76fb0a56fe0e26daa8be63d9599b0ecf29e (patch) | |
tree | b67e26fdc38694b56a8c72312ccc2f856ccc9858 /portal-gui/scripts | |
parent | ef6584ea48e9ec99271fb0609d41ffb9c87dc9eb (diff) |
added configure script to ease installation
svn path=/portal-gui/Makefile.in; revision=3357
Diffstat (limited to 'portal-gui/scripts')
-rwxr-xr-x | portal-gui/scripts/helper | 6 | ||||
-rwxr-xr-x | portal-gui/scripts/helper.in | 12 | ||||
l--------- | portal-gui/scripts/list_resources | 1 | ||||
l--------- | portal-gui/scripts/load_csv | 1 | ||||
-rw-r--r-- | portal-gui/scripts/runserver.in | 12 |
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@ $* |