aboutsummaryrefslogtreecommitdiff
path: root/system/radeontop/git.patch
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-12-15 06:56:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-12-15 06:56:57 +0700
commitca2703577e4c8ee2a48314cecb0c5e84601d43dc (patch)
tree81af73f5114e272b30347551afe987d5ebaa137d /system/radeontop/git.patch
parent8224731b8f9dc8f30cf679a6b558f8d4bbbd278d (diff)
system/radeontop: Added (Radeon cards monitoring utility).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/radeontop/git.patch')
-rw-r--r--system/radeontop/git.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/system/radeontop/git.patch b/system/radeontop/git.patch
new file mode 100644
index 0000000000000..e3fbfc50420b0
--- /dev/null
+++ b/system/radeontop/git.patch
@@ -0,0 +1,24 @@
+From c7518550fc8b0e62f1c7ea96495eec621bc395ef Mon Sep 17 00:00:00 2001
+From: orbea <orbea@fredslev.dk>
+Date: Sun, 9 Dec 2018 13:42:49 -0800
+Subject: [PATCH] getver.sh: Only use git if its a git repo.
+
+---
+ getver.sh | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/getver.sh b/getver.sh
+index 7bb1889..45261dd 100755
+--- a/getver.sh
++++ b/getver.sh
+@@ -2,7 +2,9 @@
+
+ ver=unknown
+
+-[ -n "`which git`" ] && ver=`git describe`
++if [ -n "`which git`" ] && git rev-parse HEAD 2>/dev/null; then
++ ver=`git describe`
++fi
+
+ cat > include/version.h << EOF
+ #ifndef VER_H