Browse Source

Fix sum targets in Rakefile

Douglas Thrift 8 months ago
parent
commit
a3fd273e3c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Rakefile

+ 2 - 1
Rakefile

@@ -68,7 +68,8 @@ end
   desc "Show the #{sum.upcase} sums of the distfiles"
   task sum do
     sh "mkdir -p #{distdir}" unless distdir.exist?
-    sh "#{sum} #{distdir.join('*')}"
+    files = distdir.glob('**/*').select {|dist| dist.file?}.map {|dist| dist.relative_path_from(portsdir)}
+    sh "#{sum} #{files.join(' ')}" unless files.empty?
   end
 end