GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-tron/ver.sh at feature/limit_transaction_size · lxcmyf/java-tron Expand file tree/ Copy pathver.shMore file actions executable file ·31 lines (26 loc) · 926 Bytes / Copy pathver.shFile metadata and controlsexecutable file ·31 lines (26 loc) · 926 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 #!/bin/bash set -x currentBranch=`git rev-parse --abbrev-ref HEAD` if [ "$currentBranch"x != "master"x ] then echo The current branch is not master. Please checkout into master. exit 1 else git pull origin master fi versionName=`git describe --tags` versionCode=`git rev-list HEAD --count` versionBranch=version/$versionName git checkout -b $versionBranch if [ $? -ne 0 ] then echo A branch named $versionBranch already exists. Will delete the local and remote branch and re run. git branch -D $versionBranch git push origin :$versionBranch git checkout -b $versionBranch fi versionPath="src/main/java/org/tron/program/Version.java" sed -i -e "s/VERSION_NAME.*$/VERSION_NAME = \"$versionName\";/g;s/VERSION_CODE.*$/VERSION_CODE = \"$versionCode\";/g" $versionPath git add $versionPath git commit -m "update a new version. version name:$versionName,version code:$versionCode" git push origin $versionBranch |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |