create-mk(spec|debian).sh: Code beautication

Beautify code and fix backtick and backslash escaping of package scripts

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2018-09-07 09:32:14 +00:00
commit 2a88f1ceca
2 changed files with 19 additions and 12 deletions

View file

@ -1,10 +1,5 @@
#!/bin/bash
export LANG=POSIX
dir=`dirname $0`
inifile="$1"
. $dir/ini-tools.sh
cfg_section()
{
ini_section "$inifile" $@
@ -15,6 +10,15 @@ cfg_value()
ini_value "$inifile" $@
}
# -- here we go
echo "== running $0" "$@" >&2
export LANG=POSIX
dir=`dirname $0`
inifile="$1"
. $dir/ini-tools.sh
cat << EOT
format_depends()
{