File: profile-to-c.awk

package info (click to toggle)
e2fsprogs 1.47.2-3~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 44,024 kB
  • sloc: ansic: 132,791; sh: 7,261; makefile: 5,315; awk: 524; perl: 376; cpp: 207; sed: 186; python: 23
file content (13 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/awk
BEGIN {
  printf("const char *mke2fs_default_profile = \n");
}

{
  gsub("\"","\\\"",$0);
  printf("  \"%s\\n\"\n", $0);
}

END {
  printf(";\n", str)
}