matches other short names (src, img, ..)

This commit is contained in:
Martin Diehl 2021-07-10 11:41:33 +02:00
parent 79420463f2
commit 58e0e5f4f7
47 changed files with 5 additions and 5 deletions

4
.gitattributes vendored
View File

@ -12,9 +12,9 @@
*.pbz2 binary *.pbz2 binary
# ignore files from MSC.Marc in language statistics # ignore files from MSC.Marc in language statistics
installation/MarcMentat/** linguist-vendored install/MarcMentat/** linguist-vendored
src/Marc/include/* linguist-vendored src/Marc/include/* linguist-vendored
installation/MarcMentat/apply_DAMASK_modifications.py linguist-vendored=false install/MarcMentat/apply_DAMASK_modifications.py linguist-vendored=false
# ignore reference files for tests in language statistics # ignore reference files for tests in language statistics
python/tests/reference/** linguist-vendored python/tests/reference/** linguist-vendored

View File

@ -37,7 +37,7 @@ msc_version = args.msc_version
print('adapting Marc tools...\n') print('adapting Marc tools...\n')
src = damask_root/f'installation/MarcMentat/{msc_version}/Marc_tools' src = damask_root/f'install/MarcMentat/{msc_version}/Marc_tools'
dst = msc_root/f'marc{msc_version}/tools' dst = msc_root/f'marc{msc_version}/tools'
for in_file in glob.glob(str(src/'*damask*')) + [str(src/'include_linux64')]: for in_file in glob.glob(str(src/'*damask*')) + [str(src/'include_linux64')]:
copy_and_replace(in_file,dst,args.msc_root,args.editor) copy_and_replace(in_file,dst,args.msc_root,args.editor)
@ -45,12 +45,12 @@ for in_file in glob.glob(str(src/'*damask*')) + [str(src/'include_linux64')]:
print('adapting Mentat scripts and menus...\n') print('adapting Mentat scripts and menus...\n')
src = damask_root/f'installation/MarcMentat/{msc_version}/Mentat_bin' src = damask_root/f'install/MarcMentat/{msc_version}/Mentat_bin'
dst = msc_root/f'mentat{msc_version}/bin' dst = msc_root/f'mentat{msc_version}/bin'
for in_file in glob.glob(str(src/'*[!.original]')): for in_file in glob.glob(str(src/'*[!.original]')):
copy_and_replace(in_file,dst,args.msc_root,args.editor) copy_and_replace(in_file,dst,args.msc_root,args.editor)
src = damask_root/f'installation/MarcMentat/{msc_version}/Mentat_menus' src = damask_root/f'install/MarcMentat/{msc_version}/Mentat_menus'
dst = msc_root/f'mentat{msc_version}/menus' dst = msc_root/f'mentat{msc_version}/menus'
for in_file in glob.glob(str(src/'job_run.ms')): for in_file in glob.glob(str(src/'job_run.ms')):
copy_and_replace(in_file,dst,args.msc_root,args.editor) copy_and_replace(in_file,dst,args.msc_root,args.editor)