فهرست منبع

Fix help having empty/truncated entries since c8664e198

Bryan Drewery 11 سال پیش
والد
کامیت
6bee3f0064
3فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 1 1
      build/makehelp.sh
  2. 1 1
      build/makeres.sh
  3. 1 1
      build/makeset.sh

+ 1 - 1
build/makehelp.sh

@@ -7,7 +7,7 @@ needcomma=0
 IFS="
 "
 sed -e 's,["],\\&,g' | while read -r line; do
-	if [ -z "${line%%:*}" ]; then
+	if [ -n "${line}" -a -z "${line%%:*}" ]; then
 		if [ ${needcomma} -eq 1 ]; then
 			printf "\""
 			[ ${garble} -eq 1 ] && printf ")"

+ 1 - 1
build/makeres.sh

@@ -5,7 +5,7 @@ needcomma=0
 types=
 while read -r line; do
 	[ -z "${line%%#*}" ] && continue # skip comments
-	if [ -z "${line%%:*}" ]; then
+	if [ -n "${line}" -a -z "${line%%:*}" ]; then
 		[ ${needcomma} -eq 1 ] && printf ",\n};\n\n"
 		type="${line#:}"
 		[ "${type}" = "end" ] && break

+ 1 - 1
build/makeset.sh

@@ -4,7 +4,7 @@ echo "/* Generated by $0 */"
 needcomma=0
 while read -r line; do
 	[ -z "${line%%#*}" ] && continue # skip comments
-	if [ -z "${line%%:*}" ]; then
+	if [ -n "${line}" -a -z "${line%%:*}" ]; then
 		[ ${needcomma} -eq 1 ] && printf "\"\n\n"
 		type="${line#:}"
 		[ "${type}" = "end" ] && break