Sha256: 7b9754b79aecc85d56789fd26253f59a2ec11f8f48d652292632988962833f25
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
#!/usr/bin/env bash set -e if [[ -z "$1" ]]; then echo "please specify a tag to build" exit -1 fi TAG="$1" if [[ ! -z "$(git tag | grep "^$TAG\$")" ]]; then echo "tag $1 already exists" exit -1 fi repo="$(dirname $(dirname $0))" test -f "$repo/component-tools/$(basename $0)" td="$(mktemp -d)" cd "$td" npm install codemirror@$TAG cd "$repo" rsync -ar --delete --exclude .git --exclude component-tools "$td/node_modules/codemirror/" "$repo/" cp component-tools/bower.json "$repo/" rm -rf "$td" git add -A git commit -am "Build component $TAG" git tag -am "release $TAG" $TAG
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tui_editor-rails-1.0.2.0 | vendor/assets/components/codemirror/component-tools/build.sh |