From d57029a52ba6a815ac5c9cc6c5f4dc7205fcc8cd Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 05:16:15 +0100
Subject: fix bug where if $MXEDIR didn't already exist, build failed
diff --git a/scripts/mingw-x-build-dependencies.sh b/scripts/mingw-x-build-dependencies.sh
index 76bb7d4..ee51848 100755
--- a/scripts/mingw-x-build-dependencies.sh
+++ b/scripts/mingw-x-build-dependencies.sh
@@ -41,8 +41,9 @@ if [ ! -e $BASEDIR ]; then
fi
if [ ! -e $MXEDIR ]; then
- echo "Downloading MXE into " $MXEDIR
+ mkdir -p $MXEDIR
cd $MXEDIR/..
+ echo "Downloading MXE into " $PWD
git clone git://github.com/mxe/mxe.git
fi
--
cgit v0.10.1
From f07edc4f053b65e567230645ccbcb8aa335b9f18 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 08:47:54 +0100
Subject: allow 'mingw32' option. dont use OSTYPE. fix docs. allow NUMCPU
multicore build
diff --git a/scripts/release-common.sh b/scripts/release-common.sh
index 62f8ed8..6cb5b97 100755
--- a/scripts/release-common.sh
+++ b/scripts/release-common.sh
@@ -1,15 +1,16 @@
#!/bin/bash
#
-# This script creates a binary release of OpenSCAD.
-# This should work under Mac OS X, Windows (msys), and Linux cross-compiling
-# for windows using mingw-cross-env (use like: OSTYPE=mingw-cross-env release-common.sh).
-# Linux support pending.
-# The script will create a file called openscad-.zip
-# in the current directory (or in the $DEPLOYDIR of a mingw cross build)
+# This script creates a binary release of OpenSCAD. This should work
+# under Mac OS X, Windows (msys), Linux 32, Linux 64, and Linux->Win32 MXE
+# cross-build.
#
-# Usage: release-common.sh [-v ] [-c]
-# -v Version string (e.g. -v 2010.01)
-# -c Build with commit info
+# The script will create a file called openscad-. in
+# the current directory (or under ./mingw32)
+#
+# Usage: release-common.sh [-v ] [-c] [-x32]
+# -v Version string (e.g. -v 2010.01)
+# -c Build with commit info
+# -mingw32 Cross-compile for win32 using MXE
#
# If no version string is given, todays date will be used (YYYY-MM-DD)
# If no make target is given, release will be used on Windows, none one Mac OS X
@@ -42,11 +43,18 @@ elif [[ $OSTYPE == "linux-gnu" ]]; then
ARCH=32
fi
echo "Detected ARCH: $ARCH"
-elif [[ $OSTYPE == "mingw-cross-env" ]]; then
+fi
+
+if [ "`echo $* | grep mingw32`" ]; then
OS=LINXWIN
fi
-echo "Detected OS: $OS"
+if [ $OS ]; then
+ echo "Detected OS: $OS"
+else
+ echo "Error: Couldn't detect OSTYPE"
+ exit
+fi
while getopts 'v:c' c
do
@@ -147,14 +155,19 @@ case $OS in
;;
esac
+if [ ! $NUMCPU ]; then
+ echo "note: you can 'export NUMCPU=x' for multi-core compiles (x=number)";
+ NUMCPU=2
+fi
+
case $OS in
LINXWIN)
- # make -jx sometimes has problems with parser_yacc
+ # dont use paralell builds, it can error-out on parser_yacc.
cd $DEPLOYDIR && make $TARGET
cd $OPENSCADDIR
;;
*)
- make -j2 $TARGET
+ make -j$NUMCPU $TARGET
;;
esac
--
cgit v0.10.1
From b64139788c0679b572c68045d28a4933dcc44d36 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 08:52:21 +0100
Subject: fix tabs in svg.cc
diff --git a/src/svg.cc b/src/svg.cc
index e5130b0..ff13332 100644
--- a/src/svg.cc
+++ b/src/svg.cc
@@ -96,7 +96,7 @@ std::string dump_cgal_nef_polyhedron2_face_svg(
bool mark,
CGAL_Iso_rectangle_2e bbox )
{
- std::stringstream out;
+ std::stringstream out;
CGAL_For_all(c1, c2) {
if ( explorer.is_standard( explorer.target(c1) ) ) {
CGAL_Point_2e source = explorer.point( explorer.source( c1 ) );
@@ -106,7 +106,7 @@ std::string dump_cgal_nef_polyhedron2_face_svg(
double mod=0;
if (color=="green") mod=10;
out << " \n";
- out << " \n";
out << svg_border() << "\n" << svg_axes() << "\n";
svg_cursor_py += svg_px_height;
for ( i = explorer.faces_begin(); i!= explorer.faces_end(); ++i ) {
- out << " \n";
- CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c1
- = explorer.face_cycle( i ), c2 ( c1 );
- out << dump_cgal_nef_polyhedron2_face_svg( c1, c2, explorer, "red", i->mark(), bbox );
-
- CGAL_Nef_polyhedron2::Explorer::Hole_const_iterator j;
- for ( j = explorer.holes_begin( i ); j!= explorer.holes_end( i ); ++j ) {
- out << " \n";
- CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c3( j ), c4 ( c3 );
- out << dump_cgal_nef_polyhedron2_face_svg( c3, c4, explorer, "green", j->mark(), bbox );
- out << " \n";
- }
- out << " \n";
- }
- out << "";
+ out << " \n";
+ CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c1
+ = explorer.face_cycle( i ), c2 ( c1 );
+ out << dump_cgal_nef_polyhedron2_face_svg( c1, c2, explorer, "red", i->mark(), bbox );
+
+ CGAL_Nef_polyhedron2::Explorer::Hole_const_iterator j;
+ for ( j = explorer.holes_begin( i ); j!= explorer.holes_end( i ); ++j ) {
+ out << " \n";
+ CGAL_Nef_polyhedron2::Explorer::Halfedge_around_face_const_circulator c3( j ), c4 ( c3 );
+ out << dump_cgal_nef_polyhedron2_face_svg( c3, c4, explorer, "green", j->mark(), bbox );
+ out << " \n";
+ }
+ out << " \n";
+ }
+ out << "";
std::string tmp = out.str();
boost::replace_all( tmp, "'", "\"" );
return tmp;
@@ -219,29 +219,29 @@ public:
std::string dump_svg( const CGAL_Nef_polyhedron3 &N )
{
- std::stringstream out;
+ std::stringstream out;
out << svg_header() << "\n" << svg_border() << "\n" << svg_axes() << "\n";
out << "\n";
- CGAL_Nef_polyhedron3::Volume_const_iterator c;
- CGAL_forall_volumes(c,N) {
- out << " \n";
- out << " \n";
- CGAL_Nef_polyhedron3::Shell_entry_const_iterator it;
- CGAL_forall_shells_of(it,c) {
- out << " \n";
- NefPoly3_dumper_svg dumper_svg(N);
- N.visit_shell_objects(CGAL_Nef_polyhedron3::SFace_const_handle(it), dumper_svg );
+ CGAL_Nef_polyhedron3::Volume_const_iterator c;
+ CGAL_forall_volumes(c,N) {
+ out << " \n";
+ out << " \n";
+ CGAL_Nef_polyhedron3::Shell_entry_const_iterator it;
+ CGAL_forall_shells_of(it,c) {
+ out << " \n";
+ NefPoly3_dumper_svg dumper_svg(N);
+ N.visit_shell_objects(CGAL_Nef_polyhedron3::SFace_const_handle(it), dumper_svg );
out << dumper_svg.out.str();
- out << " \n";
- }
- out << " \n";
- }
- out << "\n";
+ out << " \n";
+ }
+ out << " \n";
+ }
+ out << "\n";
out << "";
std::string tmp = out.str();
boost::replace_all( tmp, "'", "\"" );
- return tmp;
+ return tmp;
}
} // namespace
--
cgit v0.10.1
From 0778a55a40fb7afe0d90b9f01d32fee47426c9a3 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 08:59:57 +0100
Subject: actually assign copyright to Marius + Clifford, to eliminate any
problems with Debian.
diff --git a/scripts/linux-build-dependencies.sh b/scripts/linux-build-dependencies.sh
index be678d3..5e361df 100755
--- a/scripts/linux-build-dependencies.sh
+++ b/scripts/linux-build-dependencies.sh
@@ -1,8 +1,8 @@
#!/bin/sh -e
-# test_pretty_print copyright 2012 don bright. released under the GPL 2, or
+# linux-build-dependencies by don bright 2012. copyright assigned to
+# Marius Kintel and Clifford Wolf, 2012. released under the GPL 2, or
# later, as described in the file named 'COPYING' in OpenSCAD's project root.
-# permission to change this license is given to Marius Kintel & Clifford Wolf
#
# This script builds all library dependencies of OpenSCAD for Linux
diff --git a/src/boosty.h b/src/boosty.h
index 87260ff..6ec417a 100644
--- a/src/boosty.h
+++ b/src/boosty.h
@@ -1,6 +1,6 @@
-// boosty.h copyright 2012 don bright. released under the GPL 2, or later,
-// as described in the file named 'COPYING' in OpenSCAD's project root.
-// permission is given to Marius Kintel & Clifford Wolf to change this license.
+// boosty.h by don bright 2012. Copyright assigned to Marius Kintel and
+// Clifford Wolf 2012. Released under the GPL 2, or later, as described in
+// the file named 'COPYING' in OpenSCAD's project root.
#ifndef boosty_h_
#define boosty_h_
diff --git a/src/version_check.h b/src/version_check.h
index a9556e9..92b00db 100644
--- a/src/version_check.h
+++ b/src/version_check.h
@@ -1,6 +1,6 @@
-// version_check.h copyright 2012 don bright. released under the GPL 2, or
-// later, as described in the file named 'COPYING' in OpenSCAD's project root.
-// permission to change this license is given to Marius Kintel & Clifford Wolf
+// version_check.h by don bright 2012. Copyright assigned to Marius Kintel and
+// Clifford Wolf 2012. Released under the GPL 2, or later, as described in
+// the file named 'COPYING' in OpenSCAD's project root.
/* This file will check versions of libraries at compile time. If they
are too old, the user will be warned. If the user wishes to force
diff --git a/tests/test_pretty_print.py b/tests/test_pretty_print.py
index 8c57f1c..a2a04ed 100755
--- a/tests/test_pretty_print.py
+++ b/tests/test_pretty_print.py
@@ -1,8 +1,8 @@
#!/usr/bin/python
-# test_pretty_print copyright 2012 don bright. released under the GPL 2, or
-# later, as described in the file named 'COPYING' in OpenSCAD's project root.
-# permission to change this license is given to Marius Kintel & Clifford Wolf
+# test_pretty_print by don bright 2012. Copyright assigned to Marius Kintel and
+# Clifford Wolf 2012. Released under the GPL 2, or later, as described in
+# the file named 'COPYING' in OpenSCAD's project root.
#
# This program 'pretty prints' the ctest output, namely
--
cgit v0.10.1
From 406bf8a3a6793d0687e84872cc9b0544a8f01f80 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 09:08:11 +0100
Subject: clarify mingw32 usage in docs & in 'print usage'
diff --git a/scripts/release-common.sh b/scripts/release-common.sh
index 6cb5b97..4a26f09 100755
--- a/scripts/release-common.sh
+++ b/scripts/release-common.sh
@@ -17,10 +17,13 @@
#
# The commit info will extracted from git and be passed to qmake as OPENSCAD_COMMIT
# to identify a build in the about box.
+#
+# The mingw32 cross compile depends on the mxe tools + dependencies. Please
+# see scripts/*mingw-* & the OpenSCAD manual for more information.
printUsage()
{
- echo "Usage: $0 -v -c
+ echo "Usage: $0 -v -c -mingw32
echo
echo " Example: $0 -v 2010.01
}
--
cgit v0.10.1
From 5624a0e426b4d31721da9c5a633f2ac40de261a6 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 20:04:20 -0600
Subject: hand code html to remove qt cruft. makes it easier to change, and
easier to spit out to cmdline (eventually)
diff --git a/src/AboutDialog.h b/src/AboutDialog.h
index 1ae6533..2211e63 100644
--- a/src/AboutDialog.h
+++ b/src/AboutDialog.h
@@ -16,6 +16,9 @@ public:
this->aboutText->setOpenExternalLinks(true);
QUrl flattr_qurl(":icons/flattr.png" );
this->aboutText->loadResource( QTextDocument::ImageResource, flattr_qurl );
+ QString tmp = this->aboutText->toHtml();
+ tmp.replace("__VERSION__",QString(TOSTRING(OPENSCAD_VERSION)));
+ this->aboutText->setHtml(tmp);
}
};
diff --git a/src/AboutDialog.html b/src/AboutDialog.html
index e2a6264..357a6df 100644
--- a/src/AboutDialog.html
+++ b/src/AboutDialog.html
@@ -1,77 +1,132 @@
-
-
-
-OpenSCAD is Copyright (C) 2009-2012 Marius Kintel <marius@kintel.net> and Clifford Wolf <clifford@clifford.at>
-
-License
-
-This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
-
-Please visit this link for a copy of the license: GPL 2.0
-
-Tools & Libraries used
-
-GNU GMP
-GNU MPFR
-CGAL
-Eigen2
-OpenCSG
-OpenGL
-GLEW
-Qt Toolkit
-Boost
-Bison
-Flex
-CMake
-LodePNG
-MingW
-MXE
-Linux
-Mac OSX
-C++, GCC, clang
-python
-Nullsoft installer
-
-Acknowledgements
-
-OpenSCAD Github Project members (public):
-
-Marius Kintel
-Clifford Wolf
-Giles Bathgate
-Brad Pitcher
-
-Debian maintainer:
-
-Christian M. Amsüss
-
-Patches:
-
-meta23
-jasonblewis
-gregjurman
-brianolson
-tjhowse
-logxen (Mark A Cooper)
-iamwilhelm (Wil Chung)
-clothbot (Andrew Plumb)
-colah (Christopher Olah)
-
-Bug reports:
-
-nop head, Triffid Hunter, Len Trigg, Kliment Yanev, Christian Siefkes, Whosawhatsis, MichaelAtOz, mrhdias, ibyte8bits, Koen Kooi, Tomas Mudrunka, knuds, cadr, mshearn, Hans L, Brett Sutton, hmnapier, Eero af Heurlin, caliston, 5263, ghost, 42loop, uniqx, Michael Thomson, Michael Ivko, Pierre Doucet, myglc2, Alan Cox, Peter Falke, Michael Ambrus, Gordon Wrigley, Ed Nisley, Stony Smith, Pasca Andrei, David Goodenough, William A Adams ... and many others
-
-Hosting & resources
-
-Github source repository
-
-Rock Linux mailing list
-
-Thingiverse
-
-Laurent Guerby and the GCC Compile Farm, with OSUOSL, IBM, IRILL, Intel, FSF France, and AMD.
-
-Apologies to anyone accidentally left out.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OpenSCAD version __VERSION__
+
+
+
+ Copyright (C) 2009-2012 Marius Kintel <marius@kintel.net> and Clifford Wolf <clifford@clifford.at>
+
+
+
+ License
+
+
+
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+
+ Please visit this link for a copy of the license: GPL 2.0
+
+
+ Tools & Libraries used
+
+
+
+GNU GMP
+GNU MPFR
+CGAL
+Eigen2
+OpenCSG
+OpenGL
+GLEW
+Qt Toolkit
+Boost
+Bison
+Flex
+CMake
+MingW
+LodePNG
+MXE
+Linux
+Mac OSX
+C++, GCC, clang
+python
+Nullsoft installer
+
+
+
+
+ Acknowledgements
+
+
+
+ OpenSCAD Github Project members (public)
+
+
+ Marius Kintel
+ Clifford Wolf
+ Giles Bathgate
+ Brad Pitcher
+ Don Bright
+
+
+
+
+ Debian maintainer:
+ Christian M. Amsuess
+
+
+
+ Patches
+
+
+ meta23
+ jasonblewis
+ gregjurman
+ brianolson
+ tjhowse
+ logxen
+ iamwilhelm
+ clothbot
+ colah
+
+
+
+
+ Mailing list, bug reports, testing, &c
+
+ nop head, Triffid Hunter, Len Trigg, Kliment Yanev, Christian Siefkes, Whosawhatsis, MichaelAtOz, Tony Buser,
+ mrhdias, ibyte8bits, Koen Kooi, Tomas Mudrunka, knuds, cadr, mshearn, Hans L, Brett Sutton, hmnapier,
+ Eero af Heurlin, caliston, 5263, ghost, 42loop, uniqx, Michael Thomson, Michael Ivko, Pierre Doucet,
+ myglc2, Alan Cox, Peter Falke, Michael Ambrus, Gordon Wrigley, Ed Nisley, Stony Smith, Pasca Andrei,
+ David Goodenough, William A Adams ... and many others
+
+
+
+ Hosting & resources
+
+
+ Github
+ Rock Linux
+ Thingiverse
+
+
+ Laurent Guerby and the
+ GCC Compile Farm, with
+ OSUOSL, IRILL,
+ FSF France, AMD,
+ Intel, IBM, &c.
+
+
+
+
+ Apologies to anyone left out. Please file an issue on OpenSCAD's github if you know of someone who belongs here.
+
+
+
+
--
cgit v0.10.1
From 29c22aa55dff1a1b422bf92b2b6f7852e7be21c4 Mon Sep 17 00:00:00 2001
From: don bright
Date: Mon, 3 Dec 2012 20:22:39 -0600
Subject: tidy up html for QTextBrowser. add shortcut for 'help'
diff --git a/src/AboutDialog.html b/src/AboutDialog.html
index 357a6df..5976447 100644
--- a/src/AboutDialog.html
+++ b/src/AboutDialog.html
@@ -1,39 +1,45 @@
+
+
+
-
+
+
-
+
- OpenSCAD version __VERSION__
+OpenSCAD version __VERSION__
- Copyright (C) 2009-2012 Marius Kintel <marius@kintel.net> and Clifford Wolf <clifford@clifford.at>
+Copyright (C) 2009-2012 Marius Kintel <marius@kintel.net> and Clifford Wolf <clifford@clifford.at>
- License
+License
- This program is free software; you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the
- Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+This program is free software; you can redistribute it and/or modify it
+under the terms of the GNU General Public License as published by the
+Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
- Please visit this link for a copy of the license: GPL 2.0
+Please visit this link for a copy of the license: GPL 2.0
- Tools & Libraries used
+Tools & Libraries used
@@ -61,71 +67,75 @@
- Acknowledgements
+Acknowledgements
- OpenSCAD Github Project members (public)
-
-
- Marius Kintel
- Clifford Wolf
- Giles Bathgate
- Brad Pitcher
- Don Bright
-
+OpenSCAD Github Project members (public)
+
+Marius Kintel
+Clifford Wolf
+Giles Bathgate
+Brad Pitcher
+Don Bright
+
+
- Debian maintainer:
+Debian maintainer:
Christian M. Amsuess
- Patches
-
-
- meta23
- jasonblewis
- gregjurman
- brianolson
- tjhowse
- logxen
- iamwilhelm
- clothbot
- colah
-
+Patches
+
+meta23
+jasonblewis
+gregjurman
+brianolson
+tjhowse
+logxen
+iamwilhelm
+clothbot
+colah
+
+
+
+
+Mailing list, bug reports, testing, &c
+
+
+nop head, Triffid Hunter, Len Trigg, Kliment Yanev, Christian Siefkes,
+Whosawhatsis, MichaelAtOz, Tony Buser, mrhdias, ibyte8bits, Koen Kooi,
+Tomas Mudrunka, knuds, cadr, mshearn, Hans L, Brett Sutton, hmnapier,
+Eero af Heurlin, caliston, 5263, ghost, 42loop, uniqx, Michael Thomson,
+Michael Ivko, Pierre Doucet, myglc2, Alan Cox, Peter Falke, Michael
+Ambrus, Gordon Wrigley, Ed Nisley, Stony Smith, Pasca Andrei, David
+Goodenough, William A Adams ... and many others
+
- Mailing list, bug reports, testing, &c
-
- nop head, Triffid Hunter, Len Trigg, Kliment Yanev, Christian Siefkes, Whosawhatsis, MichaelAtOz, Tony Buser,
- mrhdias, ibyte8bits, Koen Kooi, Tomas Mudrunka, knuds, cadr, mshearn, Hans L, Brett Sutton, hmnapier,
- Eero af Heurlin, caliston, 5263, ghost, 42loop, uniqx, Michael Thomson, Michael Ivko, Pierre Doucet,
- myglc2, Alan Cox, Peter Falke, Michael Ambrus, Gordon Wrigley, Ed Nisley, Stony Smith, Pasca Andrei,
- David Goodenough, William A Adams ... and many others
+Hosting & resources
+
+Github
+Rock Linux
+Thingiverse
+
+
- Hosting & resources
-
-
- Github
- Rock Linux
- Thingiverse
-
-
- Laurent Guerby and the
- GCC Compile Farm, with
- OSUOSL, IRILL,
- FSF France, AMD,
- Intel, IBM, &c.
-
+Laurent Guerby and the
+GCC Compile Farm, with
+OSUOSL, IRILL,
+FSF France, AMD,
+Intel, IBM, &c.
- Apologies to anyone left out. Please file an issue on OpenSCAD's github if you know of someone who belongs here.
+Apologies to anyone left out. Please file an issue on OpenSCAD's github if you know of someone who belongs here.
diff --git a/src/MainWindow.ui b/src/MainWindow.ui
index 13bb226..f71ac96 100644
--- a/src/MainWindow.ui
+++ b/src/MainWindow.ui
@@ -217,7 +217,7 @@