This repository has been archived on 2022-01-31. You can view files and clone it, but cannot push or open issues or pull requests.
2021-06-14 17:18:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PS1="$"
|
|
|
|
basedir=`pwd`
|
|
|
|
|
|
|
|
applyPatch() {
|
|
|
|
pfoldername=$1
|
|
|
|
what=$2
|
|
|
|
target=$3
|
|
|
|
branch=$4
|
|
|
|
|
|
|
|
cd "$basedir"
|
|
|
|
if [ ! -d "$target" ]; then
|
|
|
|
git clone $what $target
|
|
|
|
fi
|
|
|
|
echo "$basedir/$target"
|
|
|
|
cd "$basedir/$target"
|
2021-06-14 21:05:53 +00:00
|
|
|
#git checkout -d origin
|
|
|
|
git checkout $branch
|
2021-06-14 17:18:52 +00:00
|
|
|
echo "Resetting $target to $what..."
|
|
|
|
git config commit.gpgSign false
|
|
|
|
echo " Applying patches to $target..."
|
|
|
|
git am --abort >/dev/null 2>&1
|
|
|
|
git am --3way "../${pfoldername}-Patches/"*.patch
|
|
|
|
if [ "$?" != "0" ]; then
|
|
|
|
echo " Something did not apply cleanly to $target."
|
|
|
|
echo " Please review above details and finish the apply then"
|
|
|
|
echo " save the changes with rebuildPatches.sh"
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo " Patches applied cleanly to $target"
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
git submodule update --init
|
|
|
|
|
|
|
|
applyPatch LimeLogin FastLogin LimeLogin-Plugin main
|