mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Added INCH=25.4 constant.
This commit is contained in:
parent
34441d7d0d
commit
654389db93
3 changed files with 7 additions and 17 deletions
|
@ -15,6 +15,12 @@
|
||||||
$slop = 0.20;
|
$slop = 0.20;
|
||||||
|
|
||||||
|
|
||||||
|
// Constant: INCH
|
||||||
|
// Description:
|
||||||
|
// The number of millimeters in an inch.
|
||||||
|
INCH = 25.4;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Section: Directional Vectors
|
// Section: Directional Vectors
|
||||||
// Vectors useful for `rotate()`, `mirror()`, and `anchor` arguments for `cuboid()`, `cyl()`, etc.
|
// Vectors useful for `rotate()`, `mirror()`, and `anchor` arguments for `cuboid()`, `cyl()`, etc.
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
VERFILE="version.scad"
|
|
||||||
|
|
||||||
vernums=$(grep ^BOSL_VERSION "$VERFILE" | sed 's/^.*[[]\([0-9,]*\)[]].*$/\1/')
|
|
||||||
major=$(echo "$vernums" | awk -F, '{print $1}')
|
|
||||||
minor=$(echo "$vernums" | awk -F, '{print $2}')
|
|
||||||
revision=$(echo "$vernums" | awk -F, '{print $3}')
|
|
||||||
|
|
||||||
newrev=$(($revision+1))
|
|
||||||
echo "Current Version: $major.$minor.$revision"
|
|
||||||
echo "New Version: $major.$minor.$newrev"
|
|
||||||
|
|
||||||
sed -i '' 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$newrev];/g" $VERFILE
|
|
||||||
|
|
||||||
exec git add version.scad
|
|
||||||
|
|
|
@ -14,4 +14,5 @@ echo "New Version: $major.$minor.$newrev"
|
||||||
sed -i '' 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$newrev];/g" $VERFILE
|
sed -i '' 's/^BOSL_VERSION = .*$/BOSL_VERSION = ['"$major,$minor,$newrev];/g" $VERFILE
|
||||||
|
|
||||||
exec git add version.scad
|
exec git add version.scad
|
||||||
|
exec git commit -m "Bump minor version."
|
||||||
|
|
Loading…
Reference in a new issue