aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/make.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/make.sh b/scripts/make.sh
index 2e7fd3b6..6d31a5e8 100755
--- a/scripts/make.sh
+++ b/scripts/make.sh
@@ -22,7 +22,8 @@ function newtoys()
done
}
echo "NEWTOY(toybox, NULL, 0)" > generated/newtoys.h
-newtoys | sort -t '(' -k3,3 >> generated/newtoys.h
+newtoys | sed 's/\(.*TOY(\)\([^,]*\),\(.*\)/\2 \1\2,\3/' | sort -k 1,1 \
+ | sed 's/[^ ]* //' >> generated/newtoys.h
# Extract global structure definitions from toys/*.c