FIXUPHACK 1.1 KB

123456789101112131415161718192021222324252627
  1. #for epdfview from puppy 412...
  2. [ -e usr/lib/libpoppler-glib.so.3 ] && ln -s libpoppler-glib.so.3 usr/lib/libpoppler-glib.so.2
  3. if [ -e usr/lib/libpoppler-glib.so.4 ];then
  4. ln -s libpoppler-glib.so.4 usr/lib/libpoppler-glib.so.3
  5. ln -s libpoppler-glib.so.4 usr/lib/libpoppler-glib.so.2
  6. fi
  7. # 7MB in here, delete it...
  8. [ -d usr/share/poppler ] && rm -rf usr/share/poppler/*
  9. #110904 wary 5.2, need more symlinks for old apps...
  10. REALLIB="`find usr/lib -maxdepth 1 -type f -name 'libpoppler-glib.so.*' | tail -n 1`"
  11. if [ "$REALLIB" ];then
  12. BASELIB="`basename $REALLIB`"
  13. [ ! -e usr/lib/libpoppler-glib.so.4 ] && ln -s $BASELIB usr/lib/libpoppler-glib.so.4
  14. [ ! -e usr/lib/libpoppler-glib.so.5 ] && ln -s $BASELIB usr/lib/libpoppler-glib.so.5
  15. [ ! -e usr/lib/libpoppler-glib.so.6 ] && ln -s $BASELIB usr/lib/libpoppler-glib.so.6
  16. fi
  17. REALLIB="`find usr/lib -maxdepth 1 -type f -name 'libpoppler.so.*' | tail -n 1`"
  18. if [ "$REALLIB" ];then
  19. BASELIB="`basename $REALLIB`"
  20. [ ! -e usr/lib/libpoppler.so.4 ] && ln -s $BASELIB usr/lib/libpoppler.so.4
  21. [ ! -e usr/lib/libpoppler.so.7 ] && ln -s $BASELIB usr/lib/libpoppler.so.7
  22. fi