From 176a98f0dd54ded790035f07c74b66718d5ee651 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 9 Sep 2013 09:12:26 +0000 Subject: Rakefile: add fix_perms dep when building gem I have restrictive permissions sometimes, do not propagate them to the gem/tarballs. --- Rakefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 3cf474d..918153b 100644 --- a/Rakefile +++ b/Rakefile @@ -110,6 +110,13 @@ task tarball: "pkg/#{base}" do end end +task "pkg/#{base}" => :fix_perms + +task :fix_perms do + sh "git ls-tree -r HEAD | awk '/^100644 / {print $NF}' | xargs chmod 644" + sh "git ls-tree -r HEAD | awk '/^100755 / {print $NF}' | xargs chmod 755" +end + task dist: [ :tarball, :package ] do Dir.chdir("pkg") do %w(dtas-linux dtas-mpris).each do |gem| -- cgit v1.2.3-24-ge0c7