mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2025-01-03 01:56:18 +01:00
Fixed generated.mk
This commit is contained in:
parent
18a2af8025
commit
e505f991df
@ -5,6 +5,7 @@
|
|||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
from glob import glob
|
from glob import glob
|
||||||
import os
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
wd = os.getcwd()
|
wd = os.getcwd()
|
||||||
@ -247,11 +248,10 @@ def main():
|
|||||||
"" ]
|
"" ]
|
||||||
|
|
||||||
tmp = "EXTRA_DIST += "
|
tmp = "EXTRA_DIST += "
|
||||||
for dir in glob("share/qmckl/test_data/*"):
|
r = subprocess.check_output("git ls-tree --name-only -r master".split())
|
||||||
for f in glob("%s/*"%(dir)):
|
for line in r.splitlines():
|
||||||
tmp += " \\\n "+f
|
if "share/qmckl/test_data/" in line:
|
||||||
for dir in glob("share/qmckl/test_data/*.*"):
|
tmp += " \\\n " + line
|
||||||
tmp += " \\\n "+f
|
|
||||||
tmp += "\n"
|
tmp += "\n"
|
||||||
output += tmp.split("\n")
|
output += tmp.split("\n")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user