Commit a666e4f7 authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

ported from pd-l2ork git: commit 4e4cd2d6712a13211e4b09dc2d9f1bc4a686463f

 *hopefully fixed the remaining conflicts between pd-extended deb and pd-l2ork deb
parent 18fe9726
......@@ -106,7 +106,7 @@ deb: $(bindir)
# install -p -m0644 $(packages_src)/linux_make/pd-48x48.png \
# $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/pd-l2ork.png
install -d $(DESTDIR)/usr/share/icons/hicolor/128x128/mimetypes
install -p -m0644 $(packages_src)/linux_make/text-x-puredata.png \
install -p -m0644 $(packages_src)/linux_make/text-x-pd-l2ork.png \
install -d $(DESTDIR)/usr/share/applications/
install -p -m0644 $(packages_src)/linux_make/pd-l2ork.desktop \
......@@ -140,7 +140,7 @@ deb: $(bindir)
install -p $(packages_src)/linux_make/pd-l2ork.gif $(DESTDIR)$(libpddir)
# emacs mode for .pd files
install -d $(DESTDIR)/usr/share/emacs/site-lisp/
install -p -m0644 $(scripts_src)/pd-mode.el \
install -p -m0644 $(scripts_src)/pd-l2ork-mode.el \
# Pd-related scripts
#install -p $(scripts_src)/pd-diff $(DESTDIR)$(bindir)
......@@ -193,7 +193,7 @@ installer_settings:
# install -p -m0644 $(packages_src)/linux_make/pd-48x48.png \
# $(DESTDIR)/usr/share/icons/hicolor/48x48/apps/pd-l2ork.png
# install -d $(DESTDIR)/usr/share/icons/hicolor/128x128/mimetypes
# install -p -m0644 $(packages_src)/linux_make/text-x-puredata.png \
# install -p -m0644 $(packages_src)/linux_make/text-x-pd-l2ork.png \
# $(DESTDIR)/usr/share/icons/hicolor/128x128/mimetypes
# install -d $(DESTDIR)/usr/share/applications/
# install -p -m0644 $(packages_src)/linux_make/pd-l2ork.desktop \
......@@ -208,7 +208,7 @@ installer_makefile:
cp -f $(packages_src)/linux_make/pd-l2ork-red.png $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/pd-l2ork-k12.png $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/pd-l2ork-k12-red.png $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/text-x-puredata.png $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/text-x-pd-l2ork.png $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/pd-l2ork.desktop $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/pd-l2ork-k12.desktop $(DESTDIR)$(libpddir)
cp -f $(packages_src)/linux_make/pd-l2ork-debug.desktop $(DESTDIR)$(libpddir)
......@@ -28,7 +28,7 @@ function post_install ()
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork-red.png /usr/share/icons/hicolor/128x128/apps/"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork-k12.png /usr/share/icons/hicolor/128x128/apps/"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork-k12-red.png /usr/share/icons/hicolor/128x128/apps/"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/text-x-puredata.png /usr/share/icons/hicolor/128x128/mimetypes"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/text-x-pd-l2ork.png /usr/share/icons/hicolor/128x128/mimetypes"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork.desktop /usr/share/applications/"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork-k12.desktop /usr/share/applications/"
echo -e "\tcp -f /usr/local/lib/pd-l2ork/pd-l2ork-debug.desktop /usr/share/applications/"
......@@ -43,7 +43,7 @@ function post_remove ()
echo -e "\trm -f /usr/share/icons/hicolor/128x128/apps/pd-l2ork-red.png"
echo -e "\trm -f /usr/share/icons/hicolor/128x128/apps/pd-l2ork-k12.png"
echo -e "\trm -f /usr/share/icons/hicolor/128x128/apps/pd-l2ork-k12-red.png"
echo -e "\trm -f /usr/share/icons/hicolor/128x128/mimetypes/text-x-puredata.png"
echo -e "\trm -f /usr/share/icons/hicolor/128x128/mimetypes/text-x-pd-l2ork.png"
echo -e "\trm -f /usr/share/applications/pd-l2ork.desktop"
echo -e "\trm -f /usr/share/applications/pd-l2ork-k12.desktop"
echo -e "\trm -f /usr/share/applications/pd-l2ork-debug.desktop"
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="">
<mime-type type="text/x-puredata">
<mime-type type="text/x-pd-l2ork">
<sub-class-of type="text/plain"/>
<glob pattern="*.pd"/>
<alias type="application/x-puredata"/>
<alias type="application/x-pd-l2ork"/>
<magic priority="50">
<match type="string" value="#N " offset="0"/>
......@@ -24,22 +24,22 @@
<comment xml:lang="tr">Pure Data Belgesi</comment>
<comment xml:lang="ru">Документ Pure Data</comment>
<mime-type type="text/x-puredata-help">
<sub-class-of type="text/x-puredata"/>
<mime-type type="text/x-pd-l2ork-help">
<sub-class-of type="text/x-pd-l2ork"/>
<glob pattern="*-help.pd"/>
<comment>Pure Data Help</comment>
<mime-type type="text/x-puredata-meta">
<sub-class-of type="text/x-puredata"/>
<mime-type type="text/x-pd-l2ork-meta">
<sub-class-of type="text/x-pd-l2ork"/>
<glob pattern="*-meta.pd"/>
<comment>Pure Data Meta Marker for Libraries</comment>
<mime-type type="application/x-puredata-external-linux">
<mime-type type="application/x-pd-l2ork-external-linux">
<sub-class-of type="application/octet-stream"/>
<glob pattern="*.pd_linux"/>
<comment>Pure Data External (Linux Binary)</comment>
<mime-type type="application/x-puredata-external-darwin">
<mime-type type="application/x-pd-l2ork-external-darwin">
<sub-class-of type="application/octet-stream"/>
<glob pattern="*.pd_darwin"/>
<comment>Pure Data External (Mac OS X Binary)</comment>
;;; pd-mode.el --- major mode for editing Pd configuration files
;; Author: Hans-Christoph Steiner <>
;; Keywords: languages, faces
;; Last edit:
;; Version: 1.0.1
;; This file is an add-on for XEmacs or GNU Emacs (not tested with the latter).
;; It is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 2, or (at your option)
;; any later version.x
;; It is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with your copy of Emacs; see the file COPYING. If not, write
;; to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.
;;; Commentary:
;; There isn't really much to say. The list of keywords was derived from
;; the Pd there may be some errors or omissions.
;; There are currently no local keybindings defined, but the hooks are
;; there in the event that anyone gets around to adding any.
;; To enable automatic selection of this mode when appropriate files are
;; visited, add the following to your favourite site or personal Emacs
;; configuration file:
;; (autoload 'pd-mode "pd-mode" "autoloaded" t)
;; (add-to-list 'auto-mode-alist '("\\.pat$" . pd-mode))
;; (add-to-list 'auto-mode-alist '("\\.pd$" . pd-mode))
;;; Code:
;; Requires
(require 'generic-x)
(define-generic-mode 'pd-mode
'("osc~" "random" "route" "trigger")
'(("#X \\([^ ]+\\) " . 'font-lock-function-name-face)
(";" . 'font-lock-warning-face))
'(".pd\\'" ".pat\\'")
"Major mode for editing Pd files")
;;; pd-mode.el ends here
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment