Skip to content

Instantly share code, notes, and snippets.

@nelsonsilva
Last active March 24, 2016 11:08
Show Gist options
  • Select an option

  • Save nelsonsilva/2c961fab4d7a326db8d6 to your computer and use it in GitHub Desktop.

Select an option

Save nelsonsilva/2c961fab4d7a326db8d6 to your computer and use it in GitHub Desktop.
bower_freeze.sh
#!/bin/sh
# Run in a clean directory passing in a GitHub org, repo and tag/branch name
org=$1
repo=$2
branch=$3
mkdir $repo
pushd $repo >/dev/null
bower install $org/$repo#$branch
pushd bower_components >/dev/null
zip -r $repo.zip *
mvn install:install-file -Dfile=$repo.zip -DgroupId=$org -DartifactId=$repo -Dversion=$branch -Dpackaging=zip
popd >/dev/null
popd >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment