947e1e510d
- disable extensions doc dir on rubinius - workaround https://github.com/rubinius/rubinius/issues/2732 for UTF8 locale in gem_packages.sh - we actually need the splitted version in any case. uncomment it again - pass the ruby abi as hash containing :interpreter, :version, :abi as keys. that way we have the full new string but also the version for the 1.8 support - rubygemsdeps.rb: - make the provides/requires also include the ruby interpreter - no longer emit the old package name style provides - rubygems.attr: - make the path a bit more relaxed so we can match other ruby interpreter too - added ruby-common.macros: Holds the common macros for the rpm macro based buildrequires. - merged ruby.macros into ruby.rpm-macros: the later file now carries the rb_* and gem_* macros - ruby.macros: drop the duplicate gem macros - fix small typo in opensuse.spec.erb which broke the formatting. - no longer require ruby(-devel). ruby-common is required by rubyX.Y so we should always be installed and this breaks a small OBS-URL: https://build.opensuse.org/request/show/248313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:ruby/ruby-common?expand=0&rev=69
17 lines
667 B
Bash
17 lines
667 B
Bash
#!/bin/sh
|
|
if [ ${#*} = 1 ] ; then
|
|
if [ -d "$1" ] ; then
|
|
find $1 \
|
|
\( -name \*.o -o -name Makefile -o -name config.log -o -name config.status -o -name Makefile.html -o -name gem_make.out -o -name mkmf.log -o -name \*.bak -o -name .deps -o -name .libs -o -name CVS \) \
|
|
-print0 | xargs -r0 rm -rv || :
|
|
# remove more strict in the docu
|
|
find $1/doc \( -name Makefile.ri -o -name ext -o -name page\*.ri \) -print0 | xargs -r0 rm -rv || :
|
|
else
|
|
echo "'$1' does not exists or is not a directory! Exiting." >&2
|
|
exit 1
|
|
fi
|
|
else
|
|
echo "Please pass exact one argument to this script! Exiting." >&2
|
|
exit 1
|
|
fi
|