Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mee4895 committed May 4, 2020
2 parents 44adde4 + 138790e commit 221190f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scriptsAndTools/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Scripts and Tools

Many of these scripts expect to be run from the root directory of this folder.
So use `$ ./scriptsAndTools/<script>.sh`

Most scripts will fail if an argument is missing

## Scripts to be used by developers
Don't use the other scripts, except if you know what you are doing.

| Name | Description |
| --- | --- |
| `verifyFormat.sh` | Checks all format requirements. `mvn clean install` before using it.
| `fixSourceFileHeaders.sh` | Replaces the first part of each java file in the repo with the correctHeader.
| `formatPoms.sh` | Formats the poms according to the requirements.
| `versionBump.sh` | Initiate a version bump and release.
6 changes: 6 additions & 0 deletions scriptsAndTools/versionBump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ if [ "$(git branch --show-current)" != "master" ] ;then
fail "Not on master branch." 4
fi

git fetch

if ! [ git diff HEAD FETCH_HEAD --exit-code > /dev/null ] ;then
fail "Branch is not up to date." 9
fi

if ! [ -e "pom.xml" ] ;then
fail "No pom detcted, Are you in root of repo?" 5
fi
Expand Down

0 comments on commit 221190f

Please sign in to comment.