mirror of
git://sourceware.org/git/lvm2.git
synced 2025-10-09 23:33:17 +03:00
12 lines
363 B
Bash
Executable File
12 lines
363 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cat command-lines.in | grep -v '^#' | grep -v '\-\-\-' | grep -v '^$' > command-lines.tmp
|
|
echo "" >> command-lines.tmp
|
|
echo "const char _command_input[] =" > command-lines-input.h
|
|
while read -r line; do
|
|
echo "" >> command-lines-input.h
|
|
printf '\"%s\\n\"' "$line" >> command-lines-input.h
|
|
done < command-lines.tmp
|
|
echo ";" >> command-lines-input.h
|
|
|