mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
On windows they no longer need the user to press enter every step Moved version info out to version.txt, This will only effect the svn. If you update the version do it in version.txt not in ForgeHooks.java. Introduced the build number into the version string. Cleaned up some extra echos in scripts.
14 lines
368 B
Bash
14 lines
368 B
Bash
#!/bin/bash
|
|
|
|
target=$1
|
|
read major minor rev build <version.txt
|
|
|
|
echo Injecting Revision $major.$minor.$rev.$build $target
|
|
|
|
sed s/majorVersion=0/majorVersion=$major/ <$target | \
|
|
sed s/minorVersion=0/minorVersion=$minor/ | \
|
|
sed s/revisionVersion=0/revisionVersion=$rev/ | \
|
|
sed s/buildVersion=0/buildVersion=$build/ | \
|
|
tr -d '\r' > $target.tmp
|
|
|
|
mv $target.tmp $target |