File: 0004-sort-examples-alphabetically.patch

package info (click to toggle)
lua-posix 31-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,604 kB
  • ctags: 1,346
  • sloc: sh: 14,309; ansic: 4,794; perl: 76; makefile: 41
file content (33 lines) | stat: -rw-r--r-- 844 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Tue, 8 Apr 2014 20:12:59 +0200
Subject: sort examples alphabetically

to avoid depending on the order in which readdir lists the content of
such directory
---
 ext/posix/config.ld | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/ext/posix/config.ld b/ext/posix/config.ld
index 2ca615f..104967d 100644
--- a/ext/posix/config.ld
+++ b/ext/posix/config.ld
@@ -14,6 +14,17 @@ custom_see_handler('^([%w_]+)%((%d)%)$',function(name,section)
     return name, url
 end)
 
-examples = 'examples'
+examples = {
+'examples/dir.lua',
+'examples/fork2.lua',
+'examples/fork.lua',
+'examples/getopt.lua',
+'examples/glob.lua',
+'examples/limit.lua',
+'examples/poll.lua',
+'examples/signal.lua',
+'examples/socket.lua',
+'examples/termios.lua',
+}
 
 format = 'discount'