diff options
author | Tomasz CEDRO <cederom@tlen.pl> | 2014-07-11 19:22:46 +0400 |
---|---|---|
committer | Tomasz CEDRO <cederom@tlen.pl> | 2014-07-11 20:11:36 +0400 |
commit | bc35a1a876aaa7d27bda77b689160c83a9a78529 (patch) | |
tree | 5ee10aa26446cf612d9c3429d2f9380ef901470e /scripts | |
parent | 70c16228ca84ac002009842b6dcd6b9b2c9b69d6 (diff) |
Initial package.sh script builder for FreeBSD.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/freebsd/cura | 2 | ||||
-rwxr-xr-x | scripts/freebsd/cura.desktop | 10 | ||||
-rwxr-xr-x | scripts/freebsd/cura.py | 34 |
3 files changed, 46 insertions, 0 deletions
diff --git a/scripts/freebsd/cura b/scripts/freebsd/cura new file mode 100755 index 0000000000..63cc06128b --- /dev/null +++ b/scripts/freebsd/cura @@ -0,0 +1,2 @@ +#!/bin/sh +PYTHONPATH=$PYTHONPATH:/usr/local/share/cura/ `echo /usr/bin/env python` /usr/local/share/cura/cura.py "$@" diff --git a/scripts/freebsd/cura.desktop b/scripts/freebsd/cura.desktop new file mode 100755 index 0000000000..aa62b2c2ff --- /dev/null +++ b/scripts/freebsd/cura.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Cura +Comment=Cura is a complete and open slicing solution for RepRap 3D printers +Icon=/usr/local/share/cura/resources/images/c.png +Exec=/usr/local/bin/cura +Path=/usr/local/share/cura/ +StartupNotify=true +Terminal=false +Categories=GNOME;GTK;Utility; diff --git a/scripts/freebsd/cura.py b/scripts/freebsd/cura.py new file mode 100755 index 0000000000..ef85a7c852 --- /dev/null +++ b/scripts/freebsd/cura.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python + +import os, sys + +sys.path.insert(1, os.path.dirname(__file__)) + +try: + import numpy + import OpenGL + import wx + import serial + import power +except ImportError as e: + if e.message[0:16] == 'No module named ': + module = e.message[16:] + + if module == 'OpenGL': + module = 'PyOpenGL' + elif module == 'serial': + module = 'pyserial' + print 'Requires ' + module + + if module == 'power': + print "Install from: https://github.com/GreatFruitOmsk/Power" + else: + print "Try sudo easy_install " + module + print e.message + + exit(1) + + +import Cura.cura as cura + +cura.main() |