fixed bug #125

parent b0c512a4
......@@ -2,7 +2,7 @@
IN_FILES=( rc/nx-rc data/bashstyle data/bashstyle-ng.pc data/bashstyle.sh )
SUB_VERSION_FILES=( data/bashstyle-ng.pc rc/nx-rc )
SUB_VERSION_FILES=( data/bashstyle-ng.pc rc/nx-rc data/bashstyle )
SUB_PREFIX_FILES=( data/bashstyle-ng.pc data/bashstyle data/bashstyle.sh rc/nx-rc )
copy_in_files () {
......
Overview of changes in v7.12.1 "Do You Like The Sound Now?"
=== Bug Fixes ===
* 125 (ui): change the way the GUI retrieves it's own version and
prefix, fixes possible startup-failures on foreign setups
=== Added Features ===
* batch [TJ Carter]
=== Misc Changes ====
* shut up bs-ng-wizard (when already setup and bs-ng loads)
* updated my mail-address
* updated debian/ scripts to 3.0 (quilt)
Overview of changes in v7.12 "Planetary Collapse"
--- IMPORTANT NOTE #1 ---
......
......@@ -2,6 +2,8 @@
cd @PREFIX@/share/bashstyle-ng/
export BSNG_UI_PREFIX="@PREFIX@"
export BSNG_UI_VERSION="@VERSION@"
export PYTHONPATH="$PYTHONPATH:@PREFIX@/share/bashstyle-ng/ui/"
python $PWD/ui/bs-ng.py $@
......@@ -26,7 +26,7 @@ if FAILED:
print "The following modules failed to import: %s" % (" ".join(FAILED))
sys.exit(1)
PREFIX = commands.getoutput('pkg-config --variable=prefix bashstyle-ng')
PREFIX = os.getenv('BSNG_UI_PREFIX')
parser = optparse.OptionParser("bashstyle <option> [value]\
\n\nBashStyle-NG © 2007 - 2010 Christopher Bratusek\
......@@ -52,11 +52,11 @@ parser.add_option("-g", "--group", dest="group", default="style",
(options, args) = parser.parse_args()
if options.version:
print "%s" % commands.getoutput('pkg-config --modversion bashstyle-ng')
print "%s" % os.getenv('BSNG_UI_VERSION')
sys.exit(0)
if options.prefix:
print "%s" % commands.getoutput('pkg-config --variable=prefix bashstyle-ng')
print "%s" % os.getenv('BSNG_UI_PREFIX')
sys.exit(0)
groups = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment