aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2016-04-11 13:00:33 +0200
committerDaniel Lange <DLange@git.local>2016-04-11 13:00:33 +0200
commitf75ab6d2c11e8a8e18191b087564aedebbeb96c5 (patch)
tree2a046e11678e798f3f9c7f7af4f9ac205c8d2731 /scripts
parent2004bbc3ef28ada3acca05f5d5fa9108121a6784 (diff)
downloaddebian_htop-f75ab6d2c11e8a8e18191b087564aedebbeb96c5.tar.gz
debian_htop-f75ab6d2c11e8a8e18191b087564aedebbeb96c5.tar.bz2
debian_htop-f75ab6d2c11e8a8e18191b087564aedebbeb96c5.zip
Imported Upstream version 1.0.3upstream/1.0.3
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/MakeHeader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/MakeHeader.py b/scripts/MakeHeader.py
index 55eeed4..c0fdc85 100755
--- a/scripts/MakeHeader.py
+++ b/scripts/MakeHeader.py
@@ -28,8 +28,8 @@ selfheader = '#include "' + name + '.h"'
out.write( "/* Do not edit this file. It was automatically generated. */" )
out.write( "" )
-out.write( "#ifndef HEADER_" + name )
-out.write( "#define HEADER_" + name )
+out.write( "#ifndef HEADER_" + os.path.basename(name) )
+out.write( "#define HEADER_" + os.path.basename(name) )
is_blank = False
for line in file.readlines():
line = line[:-1]

© 2014-2024 Faster IT GmbH | imprint | privacy policy