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

Commit f49bb29

Browse files
committed
Add a script to bump the submodule references in SF/SV.
1 parent 7fb6dd9 commit f49bb29

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

bump-spongecommon

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
if [ $# = 0 ]
3+
then
4+
echo Please specify the commit message. "Bump SpongeCommon" is inserted at the start.
5+
exit 1
6+
fi
7+
old_dir=`pwd`
8+
cd `dirname $0`
9+
cd SpongeForge
10+
git add SpongeCommon
11+
git commit -m "Bump SpongeCommon $*"
12+
git push
13+
cd ../SpongeVanilla
14+
git add SpongeCommon
15+
git commit -m "Bump SpongeCommon $*"
16+
git push
17+
cd $old_dir

init

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fi
3636

3737
if [ ! -d SpongeForge ]
3838
then
39-
git checkout https://github.com/SpongePowered/SpongeForge.git
39+
git clone https://github.com/SpongePowered/SpongeForge.git
4040
fi
4141
cd SpongeForge
4242
maybemkdir SpongeCommon
@@ -46,7 +46,7 @@ cd ..
4646
if [ ! -d SpongeVanilla ]
4747
then
4848
echo Cloning SpongeVanilla...
49-
git checkout https://github.com/SpongePowered/SpongeVanilla.git
49+
git clone https://github.com/SpongePowered/SpongeVanilla.git
5050
fi
5151
cd SpongeVanilla
5252
maybemkdir SpongeCommon

0 commit comments

Comments
 (0)