aboutsummaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
Diffstat (limited to 'distrib')
-rw-r--r--distrib/Makefile13
-rw-r--r--distrib/debian/coq.emacsen-startup5
-rwxr-xr-xdistrib/debian/rules2
3 files changed, 12 insertions, 8 deletions
diff --git a/distrib/Makefile b/distrib/Makefile
index 255e1572d0..9fa9044e9a 100644
--- a/distrib/Makefile
+++ b/distrib/Makefile
@@ -262,10 +262,9 @@ patch-ftp-install: prep-ftp-install
cp patch-${VERSION}-$(PREVIOUSVERSION).gz ${FTPDIR}/V${VERSION}/
chmod g+w ${FTPDIR}/V${VERSION}/patch-${VERSION}-$(PREVIOUSVERSION).gz
-deb:
- rm -rf ../debian ../../coq-7.0.0.orig ../../coq_7.0.0_* ../../coq_7.0.0.*
- cd ../.. ; cp -a coq-7.0.0 coq-7.0.0.orig
- cp -a debian ..
- cd .. ; dpkg-buildpackage -rfakeroot -uc -us
-# rm -rf ../debian
-
+deb: ${COQPACKAGE}.tar.gz
+ tar xzf ${COQPACKAGE}.tar.gz
+ mv ${COQPACKAGE} ${COQPACKAGE}.orig
+ tar xzf ${COQPACKAGE}.tar.gz
+ cd ${COQPACKAGE} ; cp -a distrib/debian .
+ cd ${COQPACKAGE} ; dpkg-buildpackage -rfakeroot -uc -us
diff --git a/distrib/debian/coq.emacsen-startup b/distrib/debian/coq.emacsen-startup
index d1369ae6cb..d5cd0ae1f7 100644
--- a/distrib/debian/coq.emacsen-startup
+++ b/distrib/debian/coq.emacsen-startup
@@ -11,8 +11,13 @@
;; xemacs19, emacs20, xemacs20...). The compiled code is then
;; installed in a subdirectory of the respective site-lisp directory.
;; We have to add this to the load-path:
+
(setq load-path (cons (concat "/usr/share/"
(symbol-name flavor)
"/site-lisp/coq") load-path))
+(autoload 'coq-mode "coq" "Coq major mode" t)
+(setq-default auto-mode-alist
+ (cons '("\\.v" . coq-mode)
+ auto-mode-alist))
diff --git a/distrib/debian/rules b/distrib/debian/rules
index 06927dc3fa..2dbe6b1dda 100755
--- a/distrib/debian/rules
+++ b/distrib/debian/rules
@@ -12,7 +12,7 @@ configure: configure-stamp
configure-stamp:
dh_testdir
# Add here commands to configure the package.
- ./configure --prefix /usr --mandir /usr/share/man --emacslib /usr/share/emacs/site-lisp
+ ./configure --prefix /usr --mandir /usr/share/man --emacslib /usr/share/emacs/site-lisp/coq
touch configure-stamp