Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # change INC to have Ubuntu's deb/apt calls to custom perl use
- # old perl's deb perl stuff
- custom=$( env -i perl -V |\
- sed -n -e '/^ *@INC/,${/usr\/local\/lib\/perl5\/5.*[0-9]$/p}' )
- echo Custom perl is in $custom
- pushd /usr/share/perl5 > /dev/null
- for f in $( echo * )
- do ls ${custom}/$f 2>/dev/null ||\
- sudo ln -s /usr/share/perl5/$f ${custom}/$f
- echo File or dir here\: $f
- done
- # not sure if we need to also do for /usr/local/lib/perl5/[older perl] stuff
- popd > /dev/null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement