ruby: bump to 2.5.0
[feed/packages.git] / lang / ruby / ruby_missingfiles
index 25e5810ba3d33d8a3131e1e565c25d12e5420f0d..b76745d25bc5e97b2d9086062d69fcd3a1c7deb0 100644 (file)
@@ -5,21 +5,34 @@
 
 function list_staging_files {
        cd "$1"; find \
-               \( \( -name "root-*" -or -name "packages" -or -name "stamp" -or -name "pkginfo" -or -name "host" \) -prune \) -or -true \
+               \( \( -name "root-*" -or -name "packages" -or -name "stamp" -or -name "pkginfo" -or -name "host" -or -name man \) -prune \) -or -true \
                \( -path "*ruby*" -or -name "erb" -or -name "gem" -or -name "irb" -or -name "rake" -or -name "rdoc" -or -name "ri" -or -name "testrb" \) \
                -not -path "*/usr/include/*" -not -path "*/usr/lib/pkgconfig/*" -not -path "*/usr/lib/lib*.a" \
                -not -path "*/usr/lib/ruby/gems/*/cache/*" \
+               -not -path "*/usr/lib/libruby.so" \
+               -not -name "*test_case.rb" \
+               -not -name "*.rdoc" \
+               -not -name "*.doc" \
+               -not -name "*.md" \
+               -not -name "*.txt" \
+               -not -name "*.travis.yml" \
+               -not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/benchmark/.*" \
+               -not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/evaluation/.*" \
+               -not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/sample/.*" \
+               -not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/test/.*" \
+               -not -regex ".*/usr/lib/ruby/gems/[^/]*/gems/[^/]*/doc/.*" \
+               -not -type d \
                -print | sort
 }
 
 function list_ipkg_files {
        for OPKG; do
-        tar --to-stdout -xzf "$OPKG" ./data.tar.gz | tar tz | sed -e 's%/$%%'
-       done | sort -u
+               tar --to-stdout -xzf "$OPKG" ./data.tar.gz | tar tzv | grep -v ^d | sed -e 's,.* \./,./,;s/ -> .*//'
+       done | sort -u | grep -v ./usr/lib/ruby/ruby...-bin
 }
 
 
-echo "                          Staging                                             Packages"
+echo "                   Installed in Staging                                             Packages"
 
 : ${1:?First arg is staging_dir}
 : ${2:?Second and following args are ruby ipkg packages}