You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-process/htop/files/htop-1.0.2-out-of-src.patch

31 lines
790 B

Makefile.am | 2 +-
scripts/MakeHeader.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 05a72e7..dd28a87 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -43,7 +43,7 @@ debug:
$(MAKE) all CFLAGS="" AM_CPPFLAGS="-ggdb -DDEBUG"
.c.h:
- scripts/MakeHeader.py $<
+ $(top_srcdir)/scripts/MakeHeader.py $<
cppcheck:
cppcheck -q -v . --enable=all -DHAVE_CGROUP -DHAVE_OPENVZ -DHAVE_TASKSTATS
diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py
index 55eeed4..46af921 100755
--- a/scripts/MakeHeader.py
+++ b/scripts/MakeHeader.py
@@ -11,7 +11,7 @@ state = ANY
static = 0
file = open(sys.argv[1])
-name = sys.argv[1][:-2]
+name = os.path.basename(sys.argv[1][:-2])
out = open(name + ".h", "w")
class writer: