emacsVER-common.postinst 832 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. set -e
  3. MAJOR=@MAJOR_VERSION@
  4. MINOR=@MINOR_VERSION@
  5. FULL=@FULL_VERSION@
  6. # Create the site-lisp dir for this flavor if we're allowed
  7. parentdir=/usr/local/share/emacs
  8. newdir=site-lisp
  9. if [ -d ${parentdir} ]
  10. then
  11. if mkdir ${parentdir}/${newdir} 2>/dev/null
  12. then
  13. chown root:staff ${parentdir}/${newdir}
  14. chmod 2775 ${parentdir}/${newdir}
  15. fi
  16. fi
  17. parentdir=/usr/local/share/emacs
  18. newdir=${FULL}
  19. if [ -d ${parentdir} ]
  20. then
  21. if mkdir ${parentdir}/${newdir} 2>/dev/null
  22. then
  23. chown root:staff ${parentdir}/${newdir}
  24. chmod 2775 ${parentdir}/${newdir}
  25. fi
  26. fi
  27. parentdir=/usr/local/share/emacs/${FULL}
  28. newdir=site-lisp
  29. if [ -d ${parentdir} ]
  30. then
  31. if mkdir ${parentdir}/${newdir} 2>/dev/null
  32. then
  33. chown root:staff ${parentdir}/${newdir}
  34. chmod 2775 ${parentdir}/${newdir}
  35. fi
  36. fi
  37. #DEBHELPER#