mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-11-06 02:42:34 +01:00
ff560e687c
* Update build.yml
* Remove 3rd party patches
* Add Upsteam Submodules
* Fix patches
* ?
* Fix patches
* Add Fast Init script
* Lots of stuff
also it's broke
* more broken
* fixes
* mor stuff
* gfhfgh
hg
* fix patch
* fix up script
* update submodule
* add papercut
* update tuinity
* update gitmodules
* fix var name
* fix more var stuff
* some how it's not deleting shit anymore
* should now use the branch it just made
why are we doing this again?
* now it does thing thing
* return previous so YAPFA can use it
* ok now it really does the thing
* for REAL it does the thing
* don't do the thing because it causes too many problems
* fix api
* work
* use better patching for YAPFA patches
* fix better patching
* more fixes
* new patches stuff
* remove old 3rd parry patches add removed akarin patches
* make new branch for making patches
* hopefully build patches correctly
* fix gitignore and add config patches
* remove papercut files
* fix some weirdness
* fix bug
* time to do some fixin' 👀
* New Patch System Rebased Patches
* fix full build
* exit 1
* fix
* Remove patch
* Hopefully fix compile errors
* fixes
* this might work
* don't use rej for our patches
* tmp disable cache
* some times case sensitivity is dumb
* my sanity is at an all time low :)
* dfg
* readd cahce
* fix?
* Update Upstream
* fix perms
* fix
* fix api
* Redo API
* rm folders
* fix villager brain patch
* emc explosion pref
* fixed aikar's shit
* betterfix
* fix lagggg
* Origami
* Origami Fixes
* Update readme
* test async path finding
* WIP Async Path Finding
* WIP fix async path finding
* same as bellow
* same
* update to newer funcs
* fix newer funcs
* fix author
* Updates, Fixes, and new patches
* fixes
* possibly async flying path finding
* minor asnyc pathfinding fix
* test remove non asnyc path finder
* WIP make all path finding async
* Rename everything
* Exec flag
* Rebuild hashes
* remove dupe patch
* fix?
* Fix packages, redirect config
* old nav class is now async and back
* add getchatcolor.getbyid and handle patches with a . in them better
Co-authored-by: tr7zw <tr7zw@live.de>
Co-authored-by: Unknown <unknown@example.com>
Co-authored-by: Ovydux <68059159+Ovydux@users.noreply.github.com>
52 lines
1.5 KiB
Bash
Executable File
52 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
patchdir="$1/patches"
|
|
searchtxts=(server api)
|
|
i=0
|
|
|
|
echo "Starting Upstream Patching!"
|
|
cd $patchdir
|
|
for D in */; do
|
|
if [ -d "${D}" ]; then
|
|
dnoslash=${D%/*}
|
|
if [[ $dnoslash != "server" ]]; then
|
|
if [[ $dnoslash != "api" ]]; then
|
|
echo "Found $dnoslash directory!"
|
|
for file in ${searchtxts[@]}; do
|
|
i=0
|
|
rm -rf -f "$1/patches/$dnoslash/$file/"
|
|
echo "Looking for $file file!"
|
|
echo "$(cat $patchdir/$dnoslash/$file.txt)"
|
|
IFS='&'
|
|
read -ra ADDR <<< $(cat $patchdir/$dnoslash/$file.txt)
|
|
for patch in ${ADDR[@]}; do
|
|
echo "Found $patch in $file!"
|
|
echo $1/$dnoslash/patches/$file
|
|
for filename in $1/$dnoslash/patches/$file/*.patch; do
|
|
filenamend="${filename##*/}"
|
|
filenamens=${filenamend%/*}
|
|
#filenameedited=${filenamens%.*} # retain the part before the period
|
|
filenameedited=${filenamens::-6}
|
|
#echo $filenameedited
|
|
filenameedited=${filenameedited:5} # retain the part after the frist slash
|
|
if [[ $filenameedited == $patch ]]; then
|
|
echo "Found Matching file!"
|
|
if [[ $i == 0 ]]; then
|
|
echo "Making $file dir in $dnoslash patch dir"
|
|
mkdir $1/patches/$dnoslash/$file
|
|
fi
|
|
((i=i+1))
|
|
printf -v num "%04d" $i
|
|
echo "Making ${num}-${patch}.patch file for Yatopia"
|
|
cp $1/$dnoslash/patches/$file/$filenamens $1/patches/$dnoslash/$file/"${num}-${patch}.patch"
|
|
fi
|
|
done
|
|
done
|
|
IFS=' '
|
|
done
|
|
$1/scripts/applyUpstream.sh $1 $dnoslash || exit 1
|
|
fi
|
|
fi
|
|
fi
|
|
done
|
|
|