File: package

package info (click to toggle)
ruby-octokit 8.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,656 kB
  • sloc: ruby: 12,806; sh: 99; makefile: 7; javascript: 3
file content (18 lines) | stat: -rwxr-xr-x 324 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
# Usage: script/gem
# Updates the gemspec and builds a new gem in the pkg directory.

mkdir -p pkg
gem build *.gemspec

./script/validate || rm *.gem

echo "*** Packing and moving the octokit gem ***"
if [ -f *.gem ]; then
  mv *.gem pkg
  echo -e '☑ success'
else
  echo -e '☒ failure'
  exit 1
fi