-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade velocity; use git submodules instead of ad-hoc script
- Loading branch information
1 parent
acba865
commit 36b8482
Showing
4 changed files
with
13 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Velocity/ | ||
.direnv | ||
.envrc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[submodule "Velocity"] | ||
path = Velocity | ||
url = https://github.com/PaperMC/Velocity.git | ||
shallow = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
#! /usr/bin/env bash | ||
|
||
if [ ! -d "Velocity" ]; | ||
then | ||
git clone https://github.com/PaperMC/Velocity.git | ||
fi | ||
set -e | ||
|
||
cd Velocity | ||
git restore . | ||
git pull | ||
git clean -fd | ||
|
||
for patch in ../patches/*.patch; do | ||
git apply $patch || exit | ||
git apply $patch | ||
done | ||
|
||
./gradlew publish | ||
|
||
ls ../patches/*.patch | tac | while read f; do | ||
git apply -R $patch | ||
done |