-
Notifications
You must be signed in to change notification settings - Fork 0
/
copy-relevant-files
18 lines (18 loc) · 1.28 KB
/
copy-relevant-files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
# Update src/ by copying relevant files from the `mathlib` in the `_target` folder.
cp _target/deps/mathlib/src/number_theory/{function_field,number_field,class_number/{admissible_abs,admissible_absolute_value,admissible_card_pow_degree,finite}}.lean\
_target/deps/mathlib/src/group_theory/group_action/defs.lean\
_target/deps/mathlib/src/field_theory/{adjoin,intermediate_field,minpoly,primitive_element,subfield}.lean\
_target/deps/mathlib/src/ring_theory/{class_group,fractional_ideal,ideal/over,integral_closure,integrally_closed,localization/fraction_ring,noetherian,principal_ideal_domain,power_basis,trace,unique_factorization_domain}.lean\
src/
# Copy these into a subdirectory since they have the same filename
mkdir -p src/class_number/
cp _target/deps/mathlib/src/number_theory/class_number/{function_field,number_field}.lean src/class_number/
mkdir -p src/algebra/
cp _target/deps/mathlib/src/algebra/algebra/basic.lean src/algebra/
mkdir -p src/group_with_zero/
cp _target/deps/mathlib/src/algebra/group_with_zero/basic.lean src/group_with_zero/
mkdir -p src/set_like/
cp _target/deps/mathlib/src/data/set_like/basic.lean src/set_like/
mkdir -p src/dedekind_domain/
cp _target/deps/mathlib/src/ring_theory/dedekind_domain/{basic,ideal,integral_closure}.lean src/dedekind_domain/