Browse Source

lua-codegen: Updated (0.2.1 -> 0.3.0)

user/chris/test/arm
Alejandro Mery 13 years ago
parent
commit
d6c94d0973
  1. 22
      lua/lua-codegen/Makefile.patch
  2. 63
      lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch
  3. 6
      lua/lua-codegen/lua-codegen.desc

22
lua/lua-codegen/Makefile.patch

@ -1,22 +0,0 @@
diff --git a/Makefile b/Makefile
index f765ca7..dc1ee2b 100644
--- a/Makefile
+++ b/Makefile
@@ -6,10 +6,13 @@ ifndef REV
REV := 1
endif
-ifndef DESTDIR
- DESTDIR := /usr/local
-endif
-LIBDIR := $(DESTDIR)/share/lua/5.1
+LUAVER := 5.1
+PREFIX := /usr/local
+DPREFIX := $(DESTDIR)$(PREFIX)
+LIBDIR := $(DPREFIX)/share/lua/$(LUAVER)
+
+all:
+ @echo "Nothing to build here"
install:
mkdir -p $(LIBDIR)/CodeGen

63
lua/lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch

@ -1,63 +0,0 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../lua-codegen/b6a6252bd878015bded6201a2d71fd6dbe3b4e20.patch
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
From b6a6252bd878015bded6201a2d71fd6dbe3b4e20 Mon Sep 17 00:00:00 2001
From: Francois Perrad <francois.perrad@gadz.org>
Date: Tue, 7 Jun 2011 16:32:58 +0200
Subject: [PATCH] fix interpolate : handles the last line of a template even if no newline
---
CHANGES | 4 ++++
src/CodeGen.lua | 3 +--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/CHANGES b/CHANGES
index 86f9fce..1c8e747 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
Revision history for lua-CodeGen
+0.2.2
+ - fix interpolate : handles the last line of a template even if no newline
+ (reported by Alejandro Mery)
+
0.2.1 Fri Nov 26 10:30:00 2010
- fix compatibility with Lua 5.2.0 alpha
diff --git a/src/CodeGen.lua b/src/CodeGen.lua
index c78f4d9..18b25e9 100644
--- a/src/CodeGen.lua
+++ b/src/CodeGen.lua
@@ -197,14 +197,13 @@ local function eval (self, name)
if template:find "\n" then
local results = {}
- for line in template:gmatch "([^\n]*)\n" do
+ for line in template:gmatch "([^\n]*)\n?" do
local result = interpolate_line(line)
if result == line or not result:match'^%s*$' then
results[#results+1] = result
end
lineno = lineno + 1
end
- results[#results+1] = ''
return tconcat(results, "\n")
else
return interpolate_line(template)
--
1.7.4.1

6
lua/lua-codegen/lua-codegen.desc

@ -2,7 +2,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../lua-codegen/lua-codegen.desc
[COPY] Copyright (C) 2011 The OpenSDE Project
[COPY] Copyright (C) 2011 - 2012 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
@ -33,7 +33,7 @@
[L] MIT
[S] Stable
[V] 0.2.1
[V] 0.3.0
[P] X -?---5---9 800.000
[D] 1547741812 lua-codegen-0.2.1.tar.gz https://github.com/downloads/fperrad/lua-CodeGen/
[D] 319198739 lua-codegen-0.3.0.tar.gz https://github.com/downloads/fperrad/lua-CodeGen/

Loading…
Cancel
Save