]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - setup.rb
ci: add rake test command to script
[user/henk/code/ruby/rbot.git] / setup.rb
index 424a5f37c6fe3a7cac54b0f85688c1cce7da9cdf..277accc6c7f7f41fd07ebc6f47a7e68212f61a3c 100755 (executable)
--- a/setup.rb
+++ b/setup.rb
@@ -1,3 +1,4 @@
+#!/usr/bin/env ruby
 #
 # setup.rb
 #
 #
 # setup.rb
 #
@@ -249,7 +250,7 @@ class ConfigTable
                       'the ruby program using for installation'),
       ProgramItem.new('makeprog', 'name', makeprog,
                       'the make program to compile ruby extentions'),
                       'the ruby program using for installation'),
       ProgramItem.new('makeprog', 'name', makeprog,
                       'the make program to compile ruby extentions'),
-      SelectItem.new('shebang', 'all/ruby/never', 'ruby',
+      SelectItem.new('shebang', 'all/ruby/never', 'never',
                      'shebang line (#!) editing mode'),
       BoolItem.new('without-ext', 'yes/no', 'no',
                    'does not compile/install ruby extentions')
                      'shebang line (#!) editing mode'),
       BoolItem.new('without-ext', 'yes/no', 'no',
                    'does not compile/install ruby extentions')
@@ -659,7 +660,7 @@ module FileOperations
   def ruby(*args)
     command config('rubyprog'), *args
   end
   def ruby(*args)
     command config('rubyprog'), *args
   end
-  
+
   def make(task = nil)
     command(*[config('makeprog'), task].compact)
   end
   def make(task = nil)
     command(*[config('makeprog'), task].compact)
   end
@@ -722,7 +723,7 @@ module HookScriptAPI
   def srcdirectory?(path)
     File.dir?(srcfile(path))
   end
   def srcdirectory?(path)
     File.dir?(srcfile(path))
   end
-  
+
   def srcfile?(path)
     File.file?(srcfile(path))
   end
   def srcfile?(path)
     File.file?(srcfile(path))
   end
@@ -826,7 +827,7 @@ class ToplevelInstaller
       __send__ "exec_#{task}"
     end
   end
       __send__ "exec_#{task}"
     end
   end
-  
+
   def run_metaconfigs
     @config.load_script "#{@ardir}/metaconfig"
   end
   def run_metaconfigs
     @config.load_script "#{@ardir}/metaconfig"
   end
@@ -1404,7 +1405,7 @@ class Installer
   end
 
   # picked up many entries from cvs-1.11.1/src/ignore.c
   end
 
   # picked up many entries from cvs-1.11.1/src/ignore.c
-  JUNK_FILES = %w( 
+  JUNK_FILES = %w(
     core RCSLOG tags TAGS .make.state
     .nse_depinfo #* .#* cvslog.* ,* .del-* *.olb
     *~ *.old *.bak *.BAK *.orig *.rej _$* *$
     core RCSLOG tags TAGS .make.state
     .nse_depinfo #* .#* cvslog.* ,* .del-* *.olb
     *~ *.old *.bak *.BAK *.orig *.rej _$* *$