Project

General

Profile

« Previous | Next » 

Revision 44be90c9

Added by Dominic Cleal over 8 years ago

Rename scl_ruby variables to scl_ruby_bin, use tfm-ruby, tidy up and optimise

View differences:

rubygem-fastercsv/rubygem-fastercsv.spec
# Find files with a shebang that do not have executable permissions
for file in $(find $RPM_BUILD_ROOT%{gem_instdir} -type f ! -perm /a+x -name "*.rb"); do
if [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ]; then
sed -e 's@/usr/local/bin/ruby@%{_bindir}/ruby@g' -i $file
sed -e 's@/usr/local/bin/ruby@/usr/bin/%{?scl:%{scl_prefix}}ruby@g' -i $file
chmod -v 755 $file
fi
done

Also available in: Unified diff