summaryrefslogtreecommitdiff
path: root/debian/emacsVER-common.postinst
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-06-20 22:05:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-06-20 22:05:08 +0300
commit463c81abcc6e1adc4463cb9d6f272cf23dbf29c2 (patch)
tree8422976fbc8b0f0b2ddf9c287fac41d44a543a12 /debian/emacsVER-common.postinst
downloademacs25-463c81abcc6e1adc4463cb9d6f272cf23dbf29c2.tar.gz
Imported emacs25 25.1+1-4debian/25.1+1-4debian
Diffstat (limited to 'debian/emacsVER-common.postinst')
-rw-r--r--debian/emacsVER-common.postinst47
1 files changed, 47 insertions, 0 deletions
diff --git a/debian/emacsVER-common.postinst b/debian/emacsVER-common.postinst
new file mode 100644
index 0000000..39dbe15
--- /dev/null
+++ b/debian/emacsVER-common.postinst
@@ -0,0 +1,47 @@
+#!/bin/sh
+
+set -e
+
+MAJOR=@MAJOR_VERSION@
+MINOR=@MINOR_VERSION@
+FULL=@FULL_VERSION@
+
+# Create the site-lisp dir for this flavor if we're allowed
+
+parentdir=/usr/local/share/emacs
+newdir=site-lisp
+
+if [ -d ${parentdir} ]
+then
+ if mkdir ${parentdir}/${newdir} 2>/dev/null
+ then
+ chown root:staff ${parentdir}/${newdir}
+ chmod 2775 ${parentdir}/${newdir}
+ fi
+fi
+
+parentdir=/usr/local/share/emacs
+newdir=${FULL}
+
+if [ -d ${parentdir} ]
+then
+ if mkdir ${parentdir}/${newdir} 2>/dev/null
+ then
+ chown root:staff ${parentdir}/${newdir}
+ chmod 2775 ${parentdir}/${newdir}
+ fi
+fi
+
+parentdir=/usr/local/share/emacs/${FULL}
+newdir=site-lisp
+
+if [ -d ${parentdir} ]
+then
+ if mkdir ${parentdir}/${newdir} 2>/dev/null
+ then
+ chown root:staff ${parentdir}/${newdir}
+ chmod 2775 ${parentdir}/${newdir}
+ fi
+fi
+
+#DEBHELPER#