Skip to content

Commit 228cf9e

Browse files
terceirosorah
authored andcommitted
debian/genprovides: move list of rejected provides to an external file
1 parent 74fdecf commit 228cf9e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

debian/genprovides

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
set -eu
44

5+
standalone=$(sed -e '/^#/d' ${0}.reject | awk -v d='\\|' '{s=(NR==1?s:s d)$0}END{print s}' )
6+
7+
# FIXME after ruby3.0 is gone ruby2_keywords can be added to provides again
58
printf 'libruby:Provides='
69
find "$@" -name \*.gemspec \
710
| xargs -n 1 basename \
811
| sort \
9-
| grep -v 'bundler\|rake' \
12+
| grep -v "${standalone}" \
1013
| sed -e 's/_/-/g; s/\(.*\)-\([0-9.]\+\)\.gemspec/ruby-\1 (= \2), /' | xargs echo

debian/genprovides.reject

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# list of gems to not be shipped with the binary as they are available through
2+
# standalone packages
3+
bundler
4+
rake
5+
ruby2_keywords

0 commit comments

Comments
 (0)