forked from eartle/liblastfm
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure derives the version and then ensures it is assigned and used where necessary. A dist target for Makefile thus not duplicating version determination logic. Dedup'd findsrc.pl into a Ruby module.
- Loading branch information
Showing
16 changed files
with
182 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
/admin/dist.sh export-ignore | ||
/admin/cleansrc.sh export-ignore | ||
/.gitignore export-ignore | ||
/.gitattributes export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/ruby | ||
require 'find' | ||
require "#{File.dirname __FILE__}/platform" | ||
|
||
def findsrc dir='.' | ||
excludes = ['.svn','.git','_include','tests','_build'] | ||
case Platform::IMPL | ||
when :macosx then excludes<<'win' | ||
when :mswin, :cygwin then excludes<<'mac' | ||
else excludes<<'win'<<'mac' | ||
end | ||
Find.find dir do |path| | ||
next if path == dir # oddly neccessary | ||
path.sub! %r[^\./], '' | ||
if File.directory? path | ||
Find.prune if excludes.include? File.basename(path) | ||
#don't recurse into dirs with pro files in | ||
Find.prune if Dir["#{path}/*.pro"].length > 0 and $findsrc_prune_pro | ||
elsif File.file? path | ||
case Platform::IMPL | ||
when :macosx then next if /_mac\.cpp$/.match path | ||
when :mswin, :cygwin then next if /_win\.cpp$/.match path | ||
end | ||
yield( path, File.extname( path ) ) unless File.basename(path) == 'EXAMPLE.cpp' | ||
end | ||
end | ||
end | ||
if $0 == __FILE__ | ||
extnames=ARGV.collect {|extname| ".#{extname}"} | ||
findsrc {|path,extname| puts path if extnames.include? extname} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#!/usr/bin/ruby | ||
|
||
f = File.new(ARGV[0], "w") | ||
Dir["_include/lastfm/*"].each do |h| | ||
f.write %Q{#include "lastfm/#{File.basename h}"\n} | ||
end | ||
end |
Oops, something went wrong.