From e8300c5bb62a9d6547ea78929a54f5b13cc62e7b Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Thu, 18 Jul 2019 21:58:41 -0700 Subject: [PATCH] Fixed indexing of rand_int() --- math.scad | 2 +- scripts/genindex.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/math.scad b/math.scad index 784bb59..842157f 100644 --- a/math.scad +++ b/math.scad @@ -137,7 +137,7 @@ function modrange(x, y, m, step=1) = function sqr(x) = x*x; -// Function: rand_int(min,max,N,seed) +// Function: rand_int() // Usage: // rand_int(min,max,N,[seed]); // Description: diff --git a/scripts/genindex.sh b/scripts/genindex.sh index 1ae94b5..e124990 100755 --- a/scripts/genindex.sh +++ b/scripts/genindex.sh @@ -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