Skip to content

Commit

Permalink
Autotools is evil!
Browse files Browse the repository at this point in the history
git-svn-id: file:///storage/svn/Estelle-ruby@28 bb408b4e-d325-0410-b1ad-a4e0c52efece
  • Loading branch information
paul committed Aug 18, 2007
1 parent 1a684db commit d2f8f7d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 35 deletions.
5 changes: 3 additions & 2 deletions Rakefile
Expand Up @@ -9,6 +9,7 @@ require 'rake/testtask'
require 'spec'

require 'build/expand'
require 'lib/platform'

### Constants

Expand All @@ -32,7 +33,7 @@ to_expand = FileList.new '**/*.in'
desc "Process .in files"
task :expandify => to_expand do |f|
to_expand.each() do |ex|
expand_file(ex, ex.gsub(/\.in$/, ''))
expand_file(ex, ex.gsub(/\.in$/, ''), ExpandFileEnvironment)
end
end

Expand All @@ -54,7 +55,7 @@ end
task :default => [
:taglib,
:updatepo,
:expandify
:expandify,
]


Expand Down
18 changes: 0 additions & 18 deletions estelle.in

This file was deleted.

5 changes: 0 additions & 5 deletions lib/config.rb.in

This file was deleted.

28 changes: 19 additions & 9 deletions lib/platform.rb
Expand Up @@ -19,26 +19,36 @@
###########################################################################

# Standard library
require 'rubygems'
require 'logger'
require 'gettext'

include GetText

module Platform
def Platform.os
class << self

def os
return :linux if RUBY_PLATFORM =~ /linux/
return :windows if RUBY_PLATFORM =~ /win/
return :solaris if RUBY_PLATFORM =~ /solaris/
return :bsd if RUBY_PLATFORM =~ /bsd/
return :osx if RUBY_PLATFORM =~ /darwin/
end

def Platform.settings_file_path
#case os
# FIXME: Windows is so lame
#when :windows
#else
homedir = (ENV["HOME"] ? ENV["HOME"] : ".")
File.join(homedir, ".estelle")
#end
def home_dir
# FIXME: This is clearly wrong
return 'C:\temp' if :windows

homedir = (ENV["HOME"] ? ENV["HOME"] : ".")
File.join(homedir, ".estelle")
end

def which(program)
# FIXME: This is also clearly wrong
return "" if :windows

return `which #{program}`
end
end # Class << self
end
2 changes: 1 addition & 1 deletion po/fr_FR/estelle.po
Expand Up @@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: estelle 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-07-25 21:55-0700\n"
"POT-Creation-Date: 2007-08-17 21:10-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand Down

0 comments on commit d2f8f7d

Please sign in to comment.