forked from dfplusplus/mod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy-common.sh
More file actions
executable file
·19 lines (15 loc) · 810 Bytes
/
copy-common.sh
File metadata and controls
executable file
·19 lines (15 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# makes them deletable
chmod -R +w forge/src/main/java/com/github/dfplusplus/common
chmod -R +w fabric/src/main/java/com/github/dfplusplus/common
# removes old common files
rm -rf forge/src/main/java/com/github/dfplusplus/common
rm -rf fabric/src/main/java/com/github/dfplusplus/common
# copies the files
cp -r common/src/main/java/com forge/src/main/java/
cp -r common/src/main/java/com fabric/src/main/java/
# then, transforms the fabric stuff to what fabric can understand.
# fabric and forge use different mappings so this bodge remaps it
find ./fabric/src/main/java/com/github/dfplusplus/common -name "*.java" -type f | xargs fabric/fabric-transformer.sh
# makes them readonly
#chmod -R -w forge/src/main/java/com/github/dfplusplus/common
#chmod -R -w fabric/src/main/java/com/github/dfplusplus/common