From d7cda199532e80f3d327da2901833da4ad7a09e7 Mon Sep 17 00:00:00 2001 From: JisuPark Date: Sun, 6 Aug 2017 19:26:08 +0900 Subject: [PATCH] feat(install): Add unlisted dependency and change shebang of ruby script --- README.md | 1 + freebase/scripts/extract-freebase-schema.rb | 2 +- freebase/scripts/fbshell.rb | 2 +- freebase/scripts/virtuoso | 2 +- interactive/run | 2 +- run | 2 +- scripts/agenda-stats | 2 +- scripts/extract-module-classes.rb | 2 +- scripts/find-hard-coded-paths.rb | 2 +- scripts/fix-checkstyle.rb | 2 +- scripts/verify-code-loop.rb | 2 +- 11 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index b1ac773..35b4002 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,7 @@ You must have the following already installed on your system. - Ruby 1.8.7 or 1.9 - wget - make (for compiling fig and Virtuoso) +- zip (for unzip downloaded dependencies) Other dependencies will be downloaded as you need them. SEMPRE has been tested on Ubuntu Linux 12.04 and MacOS X. Your mileage will vary depending on how diff --git a/freebase/scripts/extract-freebase-schema.rb b/freebase/scripts/extract-freebase-schema.rb index 9662308..59f9841 100755 --- a/freebase/scripts/extract-freebase-schema.rb +++ b/freebase/scripts/extract-freebase-schema.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby require 'open-uri' diff --git a/freebase/scripts/fbshell.rb b/freebase/scripts/fbshell.rb index a9263bf..b83f1c5 100755 --- a/freebase/scripts/fbshell.rb +++ b/freebase/scripts/fbshell.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby require 'open-uri' require 'json' diff --git a/freebase/scripts/virtuoso b/freebase/scripts/virtuoso index 6152fc5..78cd8ca 100755 --- a/freebase/scripts/virtuoso +++ b/freebase/scripts/virtuoso @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # This script provides a convenient wrapper for the Virtuoso SPARQL server. diff --git a/interactive/run b/interactive/run index d4ad8bf..8fcc711 100755 --- a/interactive/run +++ b/interactive/run @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # This is the main entry point for running SHRDLURN. See # fig/lib/execrunner.rb for more documentation for how commands are generated. diff --git a/run b/run index c9f0644..2362606 100755 --- a/run +++ b/run @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # This is the main entry point for running all SEMPRE programs. See # fig/lib/execrunner.rb for more documentation for how commands are generated. diff --git a/scripts/agenda-stats b/scripts/agenda-stats index 34a529c..43bd9b5 100755 --- a/scripts/agenda-stats +++ b/scripts/agenda-stats @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby ARGV.each { |e| e = e.sub(/\.exec$/, '') diff --git a/scripts/extract-module-classes.rb b/scripts/extract-module-classes.rb index 544fda0..3f3b3da 100755 --- a/scripts/extract-module-classes.rb +++ b/scripts/extract-module-classes.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # Input: src # Output: module-classes.txt diff --git a/scripts/find-hard-coded-paths.rb b/scripts/find-hard-coded-paths.rb index 1797f19..32b5a89 100755 --- a/scripts/find-hard-coded-paths.rb +++ b/scripts/find-hard-coded-paths.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # Heuristically find all hard-coded paths in the source code. # There should be no absolute paths. diff --git a/scripts/fix-checkstyle.rb b/scripts/fix-checkstyle.rb index 32f9e0b..36fa0f6 100755 --- a/scripts/fix-checkstyle.rb +++ b/scripts/fix-checkstyle.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # Hacky script for automatically fixing style errors. This script is far from # perfect and you should manually inspect all changes before making changes. diff --git a/scripts/verify-code-loop.rb b/scripts/verify-code-loop.rb index ce61593..6b353e9 100755 --- a/scripts/verify-code-loop.rb +++ b/scripts/verify-code-loop.rb @@ -1,4 +1,4 @@ -#!/usr/bin/ruby +#!/usr/bin/env ruby # Verifies that the codebase is sane (compiles, doesn't crash, gets reasonable # accuracy) every once in a while. If something fails, an email is sent out