FIXUPHACK 1.4 KB

123456789101112131415161718192021222324
  1. #if the pkg created in packages-woof has something wrong, this file is a last
  2. #resort to fix it. Current-dir is where this file FIXUPHACK is located.
  3. [ -f usr/bin/gsc ] && ln -snf gsc usr/bin/gs
  4. [ ! -e usr/bin/ghostscript ] && ln -s gs usr/bin/ghostscript
  5. UPKGVERSION=""
  6. PATHVER="`find usr/share/ghostscript -maxdepth 1 -mindepth 1 -type d | head -n 1`"
  7. [ "$PATHVER" != "" ] && UPKGVERSION="`basename $PATHVER`"
  8. if [ "$UPKGVERSION" != "" ];then
  9. [ "$UPKGVERSION" != "8.11" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.11
  10. [ "$UPKGVERSION" != "8.15" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.15
  11. [ "$UPKGVERSION" != "8.51" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.51
  12. [ "$UPKGVERSION" != "8.54" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.54
  13. [ "$UPKGVERSION" != "8.60" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.60
  14. [ "$UPKGVERSION" != "8.70" ] && ln -s $UPKGVERSION usr/share/ghostscript/8.70
  15. fi
  16. #cut out more fat...
  17. [ -d usr/share/ghostscript/${UPKGVERSION}/Resource/CMap ] && rm -f usr/share/ghostscript/${UPKGVERSION}/Resource/CMap/*
  18. #[ -d usr/share/ghostscript/${UPKGVERSION}/Resource/Font ] && rm -rf usr/share/ghostscript/${UPKGVERSION}/Resource/Font
  19. #110826 iguleder says need this for dpup cups printing, so comment-out...
  20. #[ -d usr/share/ghostscript/${UPKGVERSION}/Resource/Init ] && rm -f usr/share/ghostscript/${UPKGVERSION}/Resource/Init/*