daScript icon indicating copy to clipboard operation
daScript copied to clipboard

Can there be an explination in the doc on how to install and execute scripts.

Open albassort opened this issue 4 years ago • 4 comments

As it stands, on arch linux, after building, I am way too in the weeds to understand how to get it to work and, trying to figure it out isn't justifying the time. I don't think it would be very hard to do some bash scripting; hell, if you explain it to me I'll write the bash script that compiles and install the scripts.

albassort avatar Feb 25 '21 03:02 albassort

There is some bash script already generate_gcc_linux.sh it's not good enough?

AntonYudintsev avatar Feb 25 '21 19:02 AntonYudintsev

It generates the scripts to execute, but how the hell do I run a .das when there is no explanation of it works? it doesn't go in /usr/bin or wherever your ${PATH} is. To execute a python script, you type python x.py/pyx, for das you do ??? do you do daScript xyz.das? no, that doesn't work. Do you convert it to C then run it with daScript? and so on.

albassort avatar Feb 25 '21 20:02 albassort

If you peek inside CMakeLists.txt you'll find all the executables it compiles (look for add_executable) It looks like ./daScript foo.das is what you need to run stuff.

pkit avatar Mar 27 '21 21:03 pkit

Reading or just try building and executing the examples/tutorial code is very helpful, and you can change the das from the tutorials to have some fun.

uniqss avatar Jun 14 '22 10:06 uniqss

Keep in mind i wrote this a long time ago, I could probably get it working now.

This kind of stuff should be in the docs though, at some point.

albassort avatar Sep 19 '22 10:09 albassort