File: configtweaks.sed

package info (click to toggle)
moin 1.9.9-1+deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 76,024 kB
  • sloc: python: 143,896; java: 10,704; php: 2,385; perl: 1,574; xml: 371; makefile: 214; sh: 81; sed: 5
file content (18 lines) | stat: -rw-r--r-- 658 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### This is sed code: "s" lines must end with a tab! ###
# Also beware of leading spaces in some text strings...

# This script is used for all conffiles.

## Use system-wide config and underlay
# ARRGH - read-only underlay not supported currently :-(
#s	^\([[:space:]]*data_underlay_dir[[:space:]]\+=\).*	\1 '/usr/share/moin/underlay'	

# Disable sample sites
s	^\([[:space:]]*\)\(("\(moinmaster\|moinmoin\)",.*\)	\1\#\2	

# Normalize whitespace so upstream changes to it don't provoke
# changed-conffile prompts.
# 1. Convert tabs to four spaces (the indendation used by upstream).
s/	/    /g
# 2. Eliminate trailing whitespace at ends of lines.
s/ \+$//g