diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-12-08 09:19:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-12-08 09:30:30 +0000 |
commit | ec4e5984a62cb95ef75f3004aa8932a9cc6ceb6c (patch) | |
tree | 2b8f1d001fbbb76ab356c151070ee40a5275be26 | |
parent | 346b21f715e484bf9280d2d6b7ac2003b29a59ed (diff) | |
download | mogilefs-client-ec4e5984a62cb95ef75f3004aa8932a9cc6ceb6c.tar.gz |
Bleh, I have revision control to tell me what's there, no need to maintain this file (or even manually generate it) myself
-rw-r--r-- | GNUmakefile | 12 | ||||
-rw-r--r-- | Manifest.txt | 2 | ||||
-rw-r--r-- | Rakefile | 7 |
3 files changed, 11 insertions, 10 deletions
diff --git a/GNUmakefile b/GNUmakefile index a46107b..8cd6df8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -34,15 +34,7 @@ $(T): $(run_test) RUBY_VERSION_FILE = lib/mogilefs/version.rb -# using make instead of rake since Rakefile takes too long to load -manifest: Manifest.txt -Manifest.txt: - git ls-files > $@+ - echo $(RUBY_VERSION_FILE) >> $@+ - cmp $@+ $@ || mv $@+ $@ - $(RM) -f $@+ - -package: manifest +package: git diff --exit-code HEAD^0 $(RM) -r pkg/ rake fix_perms @@ -55,7 +47,7 @@ flay: $(libs) flay $(flay_flags) $^ flog: $(libs) flog $(flog_flags) $^ -.PHONY: $(T) Manifest.txt +.PHONY: $(T) check-warnings: @(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \ diff --git a/Manifest.txt b/Manifest.txt index 5d6cc4f..d3a28f0 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -20,8 +20,10 @@ lib/mogilefs/chunker.rb lib/mogilefs/client.rb lib/mogilefs/copy_stream.rb lib/mogilefs/http_file.rb +lib/mogilefs/http_range_put.rb lib/mogilefs/http_reader.rb lib/mogilefs/http_stream.rb +lib/mogilefs/http_tempfile.rb lib/mogilefs/mogilefs.rb lib/mogilefs/mysql.rb lib/mogilefs/new_file_common.rb @@ -6,6 +6,13 @@ $:.unshift 'lib' require 'mogilefs' Hoe.plugin :seattlerb +manifest = "Manifest.txt" +if ! File.exist?(manifest) || + File.stat(manifest).mtime < File.stat(RVF).mtime + system("git ls-files > #{manifest}") + File.open(manifest, "a") { |fp| fp.puts("lib/mogilefs/version.rb") } +end + Hoe.spec 'mogilefs-client' do self.rubyforge_name = 'seattlerb' developer 'Eric Wong', 'normalperson@yhbt.net' |