refactor: Initial release

This commit is contained in:
Mira 2025-01-27 17:17:53 +01:00
commit 9505750e29
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36
447 changed files with 41522 additions and 0 deletions

View file

@ -0,0 +1,44 @@
#!/bin/bash
current_dir=$(pwd)
./update_deps.sh
if [ "$1" -ne 1 ]; then
./update_deps.sh
fi
if [ $? -ne 0 ]; then
echo "Error: update_deps.sh script failed. Exiting."
exit 1
fi
cd "$current_dir"
rm -f *.pmpl
for i in */; do
# Exclude 'deps' and 'Example' directories
if [ "$i" != "deps/" ] && [ "$i" != "Example/" ]; then
# Check if .build.sh file exists and is executable
if [ -x "$i.build.sh" ]; then
cd "$i"
echo "Running .build.sh in $i"
./.build.sh
if [ $? -ne 0 ]; then
echo "Error: Build failed."
exit 1
fi
cd ..
# Move pmpl files to parent directory
mv "$i"/*.pmpl .
fi
fi
done
rm -rf trusted_manifests
mkdir trusted_manifests
cd deps
dotnet ProjectMakoto.dll --build-manifests .. --output-manifests ../trusted_manifests