diff --git a/debian/bootstrap.sh b/debian/bootstrap.sh index ecf3070b9a..6c41ebc817 100755 --- a/debian/bootstrap.sh +++ b/debian/bootstrap.sh @@ -42,7 +42,7 @@ err () { exit 1 } -xread() { +xread () { local xIFS="$IFS" IFS='' read $@ @@ -93,7 +93,7 @@ map_fs_modules () { done } -map_modules() { +map_modules () { local filterfn="$1" percatfns="$2" permodfns="$3" for x in $parse_dir/*; do test -d $x || continue @@ -592,7 +592,7 @@ accumulate_build_depends () { fi } -genmodctl_new_mod() { +genmodctl_new_mod () { grep -e "^Module: ${module}$" control-modules >/dev/null && return 0 cat </dev/null && return 0 cat < control-modules.preparse local category="" local module_name="" @@ -678,7 +678,7 @@ parse_mod_control() { done < control-modules.preparse } -debian_wrap() { +debian_wrap () { local fl=true echo "$1" | fold -s -w 69 | while xread l; do local v="$(echo "$l" | sed -e 's/ *$//g')" @@ -691,11 +691,11 @@ debian_wrap() { done } -genmodctl_cat() { +genmodctl_cat () { (echo "## mod/$category"; echo) } -genmodctl_mod() { +genmodctl_mod () { echo "Module: $module" echo "Description: $description" echo "$long_description" | fold -s -w 69 | while xread l; do