Skip to content

Commit

Permalink
Minor shell script changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickcharlton committed Jan 10, 2024
1 parent 9877b4f commit dafc767
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
5 changes: 2 additions & 3 deletions bin/build_gem → bin/build-gem
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env sh
#!/bin/sh

# Exit if any subcommand fails
set -e

VERSION=$(ruby -r ./lib/administrate/version.rb -e "puts Administrate::VERSION")
yarn run build
yarn run build:css
gem build administrate.gemspec
gem install administrate-${VERSION}.gem
gem install "administrate-${VERSION}.gem"
4 changes: 3 additions & 1 deletion bin/dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
#!/bin/sh

set -e

if ! gem list foreman -i --silent; then
echo "Installing foreman..."
Expand Down
2 changes: 1 addition & 1 deletion bin/dev_assets → bin/dev-assets
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env sh
#!/bin/sh

"$(dirname "$0")"/dev -m js=1,css=1
5 changes: 3 additions & 2 deletions bin/release
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Exit if any subcommand fails
#!/bin/sh

set -e

VERSION=$(ruby -r ./lib/administrate/version.rb -e "puts Administrate::VERSION")
echo "Version $VERSION"

$(dirname "$0")/build_gem
$(dirname "$0")/build-gem

sed -i.bak "s/^gemspec$/gem \"administrate\", \"`echo $VERSION`\"/g" Gemfile
rm Gemfile.bak
Expand Down

0 comments on commit dafc767

Please sign in to comment.