Skip to content

Commit

Permalink
Add diagnostic report tool
Browse files Browse the repository at this point in the history
The diagnostic report tool can be used to generate report containing system
information that is useful in analysing problems.

Signed-off-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
larsclausen committed Mar 24, 2015
0 parents commit 821c704
Show file tree
Hide file tree
Showing 5 changed files with 833 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
adi-diagnostic-report.desktop
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
PREFIX ?= /usr/local

.PHONY : all
all: adi-diagnostic-report.desktop

%.desktop: %.desktop.in
sed 's/@PREFIX@/$(subst /,\/,$(PREFIX))/' $+ > $@

.PHONY : clean
clean:
rm -f adi-diagnostic-report.desktop

install: all
install -d $(DESTDIR)$(PREFIX)/bin
install -d $(DESTDIR)$(PREFIX)/share/adi_diagnostic_report/
install ./adi_diagnostic_report $(DESTDIR)$(PREFIX)/bin/
install ./adi_diagnostic_report.glade $(DESTDIR)$(PREFIX)/share/adi_diagnostic_report/
xdg-desktop-menu install adi-diagnostic-report.desktop

uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/adi_diagnostic_report
rm -rf $(DESTDIR)$(PREFIX)/share/adi_diagnostic_report/
xdg-desktop-menu uninstall adi-diagnostic-report.desktop

8 changes: 8 additions & 0 deletions adi-diagnostic-report.desktop.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Exec=@PREFIX@/bin/adi_diagnostic_report --gui
Icon=utilities-system-monitor
Terminal=false
Type=Application
Categories=System
Name=ADI Diagnostic Report
GenericName=ADI Diagnostic Report
Loading

0 comments on commit 821c704

Please sign in to comment.