Sign up

Bash Script for GtkD 3 Installation

Hi. I write a bash script for gtkd installation.

I was not sure that it works exactly.

Is there anyone who can test this script?

My installation script

https://gist.github.com/aligoren/9805f9e250afd34b84f4

Maybe this script is working very nicely.

Good work for my computer.

Download link is static: http://gtkd.org/download.html

I don't now how can i parse latest download link for bash scripting. Because download link does not contain the class or id. I can't access latest link.

Maybe you're change url type like below:

For latest GtkD3 Version
http://gtkd.org/Downloads/sources/GtkD3.zip

For latest GtkD3 Version
http://gtkd.org/Downloads/sources/GtkD2.zip

After using gtkd_installer.sh file and test some GtkD example projects -> Screenshots

Sorry for my bad english

Re: Bash Script for GtkD 3 Installation

I've added a "Latest" symlink for the 3.x version.

For the 2.x version 2.4.2 will probably stay the latest version.
The 1.x version will receive some bug fixes, since it supports GTK+ 2.x.

Re: Bash Script for GtkD 3 Installation

Thanks for latest link.

http://gtkd.org/Downloads/sources/Latest

I'm changed code. I'm update SH file link:

https://gist.github.com/aligoren/9805f9e250afd34b84f4

Maybe you can sharing this script if true script.

Also commented some lines

# for auto link: dmd sample.d -ofSample

#env32="[Environment32]"
#env64="[Environment64]"
#dflg32="DFLAGS=-I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import -I/usr/local/include/d/gtkd-3 -L-lgtkd-3 -L-lgtkdgl-3 -L-lgtkdsv-3 -L-ldl"
#dflg64="DFLAGS=-I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import -I/usr/local/include/d/gtkd-3 -L-lgtkd-3 -L-lgtkdgl-3 -L-lgtkdsv-3 -L-ldl"
#sudo mv /etc/dmd.conf /etc/dmd.conf.backup
#sudo touch /etc/dmd.conf
#cat << EOF | sudo tee /etc/dmd.conf &> /dev/null
#${env32}
#${dflg32}

#${env64}
#${dflg64}
#EOF