aboutsummaryrefslogtreecommitdiffstats
path: root/etc/srecode
diff options
context:
space:
mode:
authorKenichi Handa2013-04-05 23:17:55 +0900
committerKenichi Handa2013-04-05 23:17:55 +0900
commitb7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f (patch)
treef32c8cce416e346d2953f063a0f22e95382cf57e /etc/srecode
parent251e91474c91e16b101502c2ed7c05fc13e4ecea (diff)
parent73931ad14ad7a51d91f10b19ae9ca8cadb256916 (diff)
downloademacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.tar.gz
emacs-b7a6f9f7919b7fc0871ae768b58f8e746aa7dd9f.zip
merge trunk
Diffstat (limited to 'etc/srecode')
-rw-r--r--etc/srecode/c.srt6
-rw-r--r--etc/srecode/ede-autoconf.srt34
-rw-r--r--etc/srecode/ede-make.srt3
-rw-r--r--etc/srecode/java.srt21
4 files changed, 42 insertions, 22 deletions
diff --git a/etc/srecode/c.srt b/etc/srecode/c.srt
index 6c7139f3184..479f5c9b33d 100644
--- a/etc/srecode/c.srt
+++ b/etc/srecode/c.srt
@@ -46,12 +46,12 @@ template empty :time :user :file :c
46 46
47template header_guard :file :blank 47template header_guard :file :blank
48---- 48----
49#ifndef {{FILENAME_SYMBOL}} 49#ifndef {{FILENAME_SYMBOL:upcase}}
50#define {{FILENAME_SYMBOL}} 1 50#define {{FILENAME_SYMBOL:upcase}} 1
51 51
52{{^}} 52{{^}}
53 53
54#endif // {{FILENAME_SYMBOL}} 54#endif // {{FILENAME_SYMBOL:upcase}}
55---- 55----
56 56
57context misc 57context misc
diff --git a/etc/srecode/ede-autoconf.srt b/etc/srecode/ede-autoconf.srt
index d2ec61a0a93..5eb2d2d24e5 100644
--- a/etc/srecode/ede-autoconf.srt
+++ b/etc/srecode/ede-autoconf.srt
@@ -1,21 +1,23 @@
1;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE. 1;;; ede/templates/autoconf.srt --- Templates for autoconf used by EDE
2;; 2
3;; Copyright (C) 2010 Eric M. Ludlam 3;; Copyright (C) 2010, 2012-2013 Free Software Foundation, Inc.
4;; 4
5;; Author: Eric M. Ludlam <eric@siege-engine.com> 5;; Author: Eric M. Ludlam <eric@siege-engine.com>
6;;
7;; This program is free software; you can redistribute it and/or
8;; modify it under the terms of the GNU General Public License as
9;; published by the Free Software Foundation; either version 2, or (at
10;; your option) any later version.
11 6
12;; This program is distributed in the hope that it will be useful, but 7;; This file is part of GNU Emacs.
13;; WITHOUT ANY WARRANTY; without even the implied warranty of 8
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 9;; GNU Emacs is free software: you can redistribute it and/or modify
15;; General Public License for more details. 10;; it under the terms of the GNU General Public License as published by
11;; the Free Software Foundation, either version 3 of the License, or
12;; (at your option) any later version.
13
14;; GNU Emacs is distributed in the hope that it will be useful,
15;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17;; GNU General Public License for more details.
16 18
17;; You should have received a copy of the GNU General Public License 19;; You should have received a copy of the GNU General Public License
18;; along with this program. If not, see <http://www.gnu.org/licenses/>. 20;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
19 21
20set mode "autoconf-mode" 22set mode "autoconf-mode"
21set escape_start "{{" 23set escape_start "{{"
@@ -26,7 +28,7 @@ set application "ede"
26 28
27context file 29context file
28 30
29template ede-empty 31template ede-empty :project
30"Start a new EDE generated configure.in/ac file." 32"Start a new EDE generated configure.in/ac file."
31---- 33----
32{{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. 34{{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE.
@@ -40,7 +42,7 @@ template ede-empty
40{{comment_prefix}} 42{{comment_prefix}}
41{{comment_prefix}} Process this file with autoconf to produce a configure script 43{{comment_prefix}} Process this file with autoconf to produce a configure script
42 44
43AC_INIT({{TEST_FILE}}) 45AC_INIT({{PROJECT_NAME}}, {{PROJECT_VERSION}})
44AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) 46AM_INIT_AUTOMAKE([{{PROGRAM}}], 0)
45AM_CONFIG_HEADER(config.h) 47AM_CONFIG_HEADER(config.h)
46 48
diff --git a/etc/srecode/ede-make.srt b/etc/srecode/ede-make.srt
index f12744e89b7..36bae085cc9 100644
--- a/etc/srecode/ede-make.srt
+++ b/etc/srecode/ede-make.srt
@@ -26,10 +26,11 @@ set application "ede"
26 26
27context file 27context file
28 28
29template ede-empty :file 29template ede-empty :file :project
30---- 30----
31# Automatically Generated {{FILE}} by EDE. 31# Automatically Generated {{FILE}} by EDE.
32# For use with: {{MAKETYPE}} 32# For use with: {{MAKETYPE}}
33# Relative File Name: {{PROJECT_FILENAME}}
33# 34#
34# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST. 35# DO NOT MODIFY THIS FILE OR YOUR CHANGES MAY BE LOST.
35# EDE is the Emacs Development Environment. 36# EDE is the Emacs Development Environment.
diff --git a/etc/srecode/java.srt b/etc/srecode/java.srt
index a4a6fc2e863..e1fbb50eff6 100644
--- a/etc/srecode/java.srt
+++ b/etc/srecode/java.srt
@@ -43,6 +43,23 @@ package {{FILENAME_AS_PACKAGE}};
43---- 43----
44bind "e" 44bind "e"
45 45
46template empty-main :file :user :time :java :indent
47"Fill out an empty file with a class having a static main method"
48sectiondictionary "CLASSSECTION"
49set NAME macro "FILENAME_AS_CLASS"
50----
51{{>:filecomment}}
52
53package {{FILENAME_AS_PACKAGE}};
54
55{{<CLASSSECTION:declaration:class}}
56public static void main(String args[]) {
57 {{^}}
58}
59{{/CLASSSECTION}}
60----
61bind "l"
62
46context declaration 63context declaration
47 64
48template import :blank :indent 65template import :blank :indent
@@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for
74the user-facing template." 91the user-facing template."
75---- 92----
76{{>:declaration:javadoc-class}} 93{{>:declaration:javadoc-class}}
77public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} 94public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}}
78{ 95{
79 {{^}} 96 {{^}}
80}; 97};
81---- 98----