File: compile

package info (click to toggle)
gitlab-shell 8.4.3%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,468 kB
  • sloc: ruby: 3,812; sh: 82; makefile: 60
file content (17 lines) | stat: -rwxr-xr-x 344 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby

require 'fileutils'

require_relative '../support/go_build'
include GoBuild

def main
  create_fresh_build_dir

  run!(GO_ENV, %W[go install #{GO_PACKAGE}/cmd/...])
  executables = Dir[File.join(BUILD_DIR, 'bin', '*')]
  FileUtils.chmod(0755, executables)
  FileUtils.cp(executables, File.join(ROOT_PATH, 'bin'))
end

main