Mercurial > mxe-octave
changeset 4348:223b967a2d40
* tools/pkg-install.py: look for pkd add/del in .cpp and cxx files
author | John D |
---|---|
date | Wed, 01 Feb 2017 17:01:45 -0500 |
parents | 244c8579a128 |
children | 3c02ca69cbe5 |
files | tools/pkg-install.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/pkg-install.py Mon Jan 30 02:57:58 2017 -0500 +++ b/tools/pkg-install.py Wed Feb 01 17:01:45 2017 -0500 @@ -111,8 +111,11 @@ if os.path.exists(packdir + "/src") == True: srcdir = packdir + "/src" files = list(srcdir + "/" + a for a in os.listdir(srcdir)) - c_files = fnmatch.filter(files, "*.cc") - for f in c_files: + cc_files = fnmatch.filter(files, "*.cc") + cpp_files = fnmatch.filter(files, "*.cpp") + cxx_files = fnmatch.filter(files, "*.cxx") + for f in cc_files + cpp_files + cxx_files: + print ('check for ', f) for a in extract_pkg(f, '^//* *' + nm + ': *(.*)$'): archfid.write("%s\n" % str(a)) for a in extract_pkg(f, '^/\** *' + nm + ': *(.*) *\*/$'):