summaryrefslogtreecommitdiff
path: root/src/ftoc.sed
blob: e32349e4316f1f7a0e688a109e73e814d1e4f2f8 (plain)
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
# This file is part of fileserv
# Copyright (C) 2009-2019 Sergey Poznyakoff
# Distributed under the terms of the GNU General Public License, either
# version 3, or (at your option) any later version. See file COPYING
# for the text of the license.

# Provide leading comment and quote
1i\
/* -*- buffer-read-only: t -*- vi: set ro:\
   THIS FILE IS GENERATED AUTOMATICALLY. PLEASE, DO NOT EDIT */\
"\\

# Provide trailing quote
$a\
"

# Remove empty lines and comments
/ *#/d
/^ *$/d
# Escape quotes and backslashes
s/["\]/\\&/g
# Add newline and continuation character at the end of each line
s/$/\\n\\/
# End

Return to:

Send suggestions and report system problems to the System administrator.