Skip to content

Commit

Permalink
deploy [version]: Version number updates on deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vihan Bhargava committed Jul 12, 2016
1 parent 01bf5ff commit b18ae71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions misc/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,20 @@ make build
echo "Compiling to target"
make browser_build

echo "Getting Version"
CHEDDAR_VERSION="$(node -pe "require('./package.json').version")"

# Copy to the destination
cd ../$REPO
echo "Moving to destination"
cp ../$CURRENT_PATH/Cheddar.js ./repl/Cheddar.js

echo "Starting template generation..."
cp ./repl/console.template.js ./repl/console.js

echo "Setting version..."
sed -i -e "s/@VERSION/$CHEDDAR_VERSION/g" ./repl/console.js

echo "Prepating changes..."
git add -A

Expand Down

0 comments on commit b18ae71

Please sign in to comment.