diff options
| author | David Engster | 2013-03-22 20:31:15 +0100 |
|---|---|---|
| committer | David Engster | 2013-03-22 20:31:15 +0100 |
| commit | b886708cc640958efcf6bd68ed1674af124a2565 (patch) | |
| tree | 44c10edd72de972c7150c6df3a350f9486795d69 /etc/srecode | |
| parent | 9bb0d8227e104a549232b78197e0e8ca2d20371c (diff) | |
| parent | e8cc7880c3eead07c1d4fd93c0396edc3861b080 (diff) | |
| download | emacs-b886708cc640958efcf6bd68ed1674af124a2565.tar.gz emacs-b886708cc640958efcf6bd68ed1674af124a2565.zip | |
Merge with CEDET upstream (rev. 8499).
Diffstat (limited to 'etc/srecode')
| -rw-r--r-- | etc/srecode/c.srt | 6 | ||||
| -rw-r--r-- | etc/srecode/ede-autoconf.srt | 6 | ||||
| -rw-r--r-- | etc/srecode/ede-make.srt | 3 | ||||
| -rw-r--r-- | etc/srecode/java.srt | 21 |
4 files changed, 27 insertions, 9 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 | ||
| 47 | template header_guard :file :blank | 47 | template 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 | ||
| 57 | context misc | 57 | context misc |
diff --git a/etc/srecode/ede-autoconf.srt b/etc/srecode/ede-autoconf.srt index d2ec61a0a93..b3aaa75d2c2 100644 --- a/etc/srecode/ede-autoconf.srt +++ b/etc/srecode/ede-autoconf.srt | |||
| @@ -1,6 +1,6 @@ | |||
| 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, 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 | ;; | 6 | ;; |
| @@ -26,7 +26,7 @@ set application "ede" | |||
| 26 | 26 | ||
| 27 | context file | 27 | context file |
| 28 | 28 | ||
| 29 | template ede-empty | 29 | template ede-empty :project |
| 30 | "Start a new EDE generated configure.in/ac file." | 30 | "Start a new EDE generated configure.in/ac file." |
| 31 | ---- | 31 | ---- |
| 32 | {{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. | 32 | {{comment_prefix}} Automatically Generated/Maintained {{FILE}} by EDE. |
| @@ -40,7 +40,7 @@ template ede-empty | |||
| 40 | {{comment_prefix}} | 40 | {{comment_prefix}} |
| 41 | {{comment_prefix}} Process this file with autoconf to produce a configure script | 41 | {{comment_prefix}} Process this file with autoconf to produce a configure script |
| 42 | 42 | ||
| 43 | AC_INIT({{TEST_FILE}}) | 43 | AC_INIT({{PROJECT_NAME}}, {{PROJECT_VERSION}}) |
| 44 | AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) | 44 | AM_INIT_AUTOMAKE([{{PROGRAM}}], 0) |
| 45 | AM_CONFIG_HEADER(config.h) | 45 | AM_CONFIG_HEADER(config.h) |
| 46 | 46 | ||
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 | ||
| 27 | context file | 27 | context file |
| 28 | 28 | ||
| 29 | template ede-empty :file | 29 | template 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 | ---- |
| 44 | bind "e" | 44 | bind "e" |
| 45 | 45 | ||
| 46 | template empty-main :file :user :time :java :indent | ||
| 47 | "Fill out an empty file with a class having a static main method" | ||
| 48 | sectiondictionary "CLASSSECTION" | ||
| 49 | set NAME macro "FILENAME_AS_CLASS" | ||
| 50 | ---- | ||
| 51 | {{>:filecomment}} | ||
| 52 | |||
| 53 | package {{FILENAME_AS_PACKAGE}}; | ||
| 54 | |||
| 55 | {{<CLASSSECTION:declaration:class}} | ||
| 56 | public static void main(String args[]) { | ||
| 57 | {{^}} | ||
| 58 | } | ||
| 59 | {{/CLASSSECTION}} | ||
| 60 | ---- | ||
| 61 | bind "l" | ||
| 62 | |||
| 46 | context declaration | 63 | context declaration |
| 47 | 64 | ||
| 48 | template import :blank :indent | 65 | template import :blank :indent |
| @@ -74,8 +91,8 @@ Override this to affect applications, or the outer class structure for | |||
| 74 | the user-facing template." | 91 | the user-facing template." |
| 75 | ---- | 92 | ---- |
| 76 | {{>:declaration:javadoc-class}} | 93 | {{>:declaration:javadoc-class}} |
| 77 | public Class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} | 94 | public class {{?NAME}} {{#PARENTS}}{{#FIRST}}extends {{/FIRST}}{{#NOTFIRST}}implements {{/NOTFIRST}}{{NAME}}{{/PARENTS}} |
| 78 | { | 95 | { |
| 79 | {{^}} | 96 | {{^}} |
| 80 | }; | 97 | }; |
| 81 | ---- | 98 | ---- |