mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-09-25 00:59:10 +00:00
Detect language from shebang script
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
load 'deploy'
|
||||
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
|
||||
load 'config/deploy'
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
README
|
||||
======
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
task :default do
|
||||
puts "Rake"
|
||||
end
|
||||
@@ -0,0 +1,4 @@
|
||||
diff --git a/lib/linguist.rb b/lib/linguist.rb
|
||||
index d472341..8ad9ffb 100644
|
||||
--- a/lib/linguist.rb
|
||||
+++ b/lib/linguist.rb
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
(print "Dude!")
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
alert("dude!")
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
module Grit
|
||||
end
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
echo "bash"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/foo
|
||||
???
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env groovy
|
||||
println "Groovy!"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
console.log("Node")
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env macruby
|
||||
puts "MacRuby"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/local/bin/perl
|
||||
print "Perl\n"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env python2.4
|
||||
print "Python"
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env rake
|
||||
task :default do
|
||||
puts "Rake"
|
||||
end
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env ruby
|
||||
puts "Ruby"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
echo "sh"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#!/bin/zsh
|
||||
echo "zsh"
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
#! /usr/bin/env ruby -w -Ilib:test
|
||||
echo "Ruby"
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
task :default do
|
||||
puts "Rake (subdir)"
|
||||
end
|
||||
Reference in New Issue
Block a user