Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 0fb8ec7

Browse files
committed
Utility scripts.
1 parent 0fc5a09 commit 0fb8ec7

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

checkout-bleeding

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
git submodule foreach --recursive git checkout bleeding
3+
git up

checkout-stable

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh
2+
git submodule foreach --recursive git fetch upstream
3+
4+
major=5
5+
cd SpongeCommon
6+
while git branch -r | grep upstream/stable-$major
7+
do
8+
major=$((major + 1))
9+
done
10+
major=$((major - 1))
11+
git checkout stable-$major
12+
cd ..
13+
cd SpongeForge
14+
git checkout stable-$major
15+
cd ..
16+
cd SpongeVanilla
17+
git checkout stable-$major
18+
cd ..
19+
20+
cd SpongeCommon/SpongeAPI
21+
minor=1
22+
while git branch -r | grep upstream/stable-$major.$minor.0
23+
do
24+
minor=$((minor + 1))
25+
done
26+
minor=$((minor - 1))
27+
patch=1
28+
while git branch -r | grep upstream/stable-$major.$minor.$patch
29+
do
30+
patch=$((patch + 1))
31+
done
32+
patch=$((patch - 1))
33+
git checkout stable-$major.$minor.$patch
34+
cd ../..
35+
git up

decompile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
GRADLE_OPTS=-Xmx2G ./gradlew --no-daemon setupDecompWorkspace

0 commit comments

Comments
 (0)