diff --git a/box.json b/box.json index d9991d4..9e399c7 100644 --- a/box.json +++ b/box.json @@ -1,6 +1,6 @@ { "name": "momentcfc", - "version": "1.1.14", + "version": "1.1.15", "author": "Adam Tuttle", "location": "https://github.com/atuttle/momentcfc", "homepage": "https://github.com/atuttle/momentcfc", diff --git a/moment.cfc b/moment.cfc index e26be6f..4e2b0db 100755 --- a/moment.cfc +++ b/moment.cfc @@ -1,5 +1,5 @@ /* - MOMENT.CFC v1.1.14 + MOMENT.CFC v1.1.15 ------------------- Inspired by (but not a strict port of) moment.js: http://momentjs.com/ With help from: @seancorfield, @ryanguill diff --git a/update_version.sh b/update_version.sh new file mode 100755 index 0000000..06d9c10 --- /dev/null +++ b/update_version.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +# Updates the version in moment.cfc and box.json. + +# Usage Example (from git root): ./update_version.sh 1.1.15 + +if [ -z "$1" ]; then + echo "Usage: $0 " + exit 1 +fi + +NEW_VERSION="$1" + +# Update moment.cfc +sed -i "s/MOMENT\.CFC v[0-9]\+\.[0-9]\+\.[0-9]\+/MOMENT.CFC v$NEW_VERSION/" /home/kenric/GitHub/kenricashe/momentcfc/moment.cfc + +# Update box.json +sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"$NEW_VERSION\"/" /home/kenric/GitHub/kenricashe/momentcfc/box.json + +echo "Updated to version $NEW_VERSION"