diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 17:12:21 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-10 17:12:21 +0100 |
commit | 8bbbdab7f576eeb4233eeaf3f6f9df85fb745c6d (patch) | |
tree | 2785919ec49bf110f4ddd09cc88604a022592303 | |
parent | 3d543f8ceb5621ade7198aa913043ca967cf8fcf (diff) | |
download | abrt-8bbbdab7f576eeb4233eeaf3f6f9df85fb745c6d.tar.gz abrt-8bbbdab7f576eeb4233eeaf3f6f9df85fb745c6d.tar.xz abrt-8bbbdab7f576eeb4233eeaf3f6f9df85fb745c6d.zip |
mkde abrt-gui --help and --version behave as expected. closes bug 85
See https://fedorahosted.org/abrt/ticket/85
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | src/Gui/Makefile.am | 3 | ||||
-rwxr-xr-x | src/Gui/abrt-gui | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/Gui/Makefile.am b/src/Gui/Makefile.am index 7f61bbce..60a7bfe3 100644 --- a/src/Gui/Makefile.am +++ b/src/Gui/Makefile.am @@ -2,7 +2,7 @@ bin_SCRIPTS = abrt-gui -PYTHON_FILES = CCDBusBackend.py CCDumpList.py CCDump.py CC_gui_functions.py \ +PYTHON_FILES = CCDBusBackend.py CCDumpList.py CCDump.py CC_gui_functions.py \ CCReporterDialog.py CCReport.py abrt_utils.py \ CCMainWindow.py CellRenderers.py ABRTExceptions.py \ SettingsDialog.py ABRTPlugin.py PluginList.py PluginSettingsUI.py \ @@ -28,4 +28,5 @@ abrt.desktop: install-exec-hook: for b in $(bin_SCRIPTS); do \ sed 's:/usr/share:$(datadir):g' -i $(DESTDIR)$(bindir)/$$b || exit $$?; \ + sed 's:VERSION:@VERSION@:g' -i $(DESTDIR)$(bindir)/$$b || exit $$?; \ done diff --git a/src/Gui/abrt-gui b/src/Gui/abrt-gui index 85bdebbc..78379be7 100755 --- a/src/Gui/abrt-gui +++ b/src/Gui/abrt-gui @@ -1,4 +1,8 @@ #!/bin/sh +if test x"$1" = x"--help" || test x"$1" = x"--version"; then + echo "abrt-gui VERSION" + exit 0 +fi export PYTHONPATH=/usr/share/abrt export XLOGNAME=$LOGNAME exec /usr/bin/python /usr/share/abrt/CCMainWindow.py "$@" |