Fixed indexing of rand_int()

This commit is contained in:
Revar Desmera
2019-07-18 21:58:41 -07:00
parent 2427e09dee
commit e8300c5bb6
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ function lcase
function mkindex
{
TMPFILE=$(mktemp -t $(basename $0)) || exit 1
sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE
sed 's/([^)]*)//g' | sed 's/[^a-zA-Z0-9_.:$]//g' | awk -F ':' '{printf "- [%s](%s#%s)\n", $3, $1, $3}' | sort -d -f -u >> $TMPFILE
alpha="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z"
for a in $alpha; do
echo -n "[$a](#$(lcase "$a")) "
@@ -34,7 +34,7 @@ function mkindex
(
echo "# Belfry OpenScad Library Index"
echo "## Belfry OpenScad Library Index"
(
grep 'Constant: ' *.scad
grep 'Function: ' *.scad