File tree 11 files changed +44
-44
lines changed
11 files changed +44
-44
lines changed Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/bash/{chapter_name}.bash', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.bash'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/javascript/{chapter_name}.js', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.js'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/julia/{chapter_name}.jl', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.jl'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/lolcode/{chapter_name}.lol', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.lol'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/lua/{chapter_name}.lua', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.lua'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/php/{chapter_name}.php', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.php'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/powershell/{chapter_name}.ps1', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.ps1'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/python/{chapter_name}.py', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.py'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/ruby/{chapter_name}.rb', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.rb'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/smalltalk/{chapter_name}.st', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.st'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
Original file line number Diff line number Diff line change 1
1
Import('files_to_compile env')
2
- from pathlib import Path
3
2
4
- for file in files_to_compile:
5
- chapter_name = file.parent.parent.parent.stem
6
- env.Copier(f'#/build/viml/{chapter_name}.vim', str(file))
3
+ for file_info in files_to_compile:
4
+ build_target = f'#/build/{file_info.language}/{file_info.chapter}/{file_info.path.stem}.vim'
5
+ build_result = env.Copier(build_target, str(file_info.path))
6
+ env.Alias(str(file_info.chapter), build_result)
You can’t perform that action at this time.
0 commit comments