an ad-hoc verb for installation gkt front-end. beware line wraps.
It may take a while to download gtk binary. 

getgtkide_z_=: 3 :0
load 'pacman'
'update' jpkg ''
'install' jpkg 'ide/gtk gui/gtk'
NB. fix J installer bug
d=. toJ 1!:1 p=. <jpath, '~bin/profile.ijs'
p 1!:2~ toHOST d rplc ('user,''/break''');('user,''/break''',LF,'snap=. 
user,''/snap''');'break config';'break snap config'
if. IFWIN do.
NB. gtk window binary, file name may changes
  if. IF64 do.
    f=. 
'http://ftp.gnome.org/pub/gnome/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.0-20101016_win64.zip'
  else.
    f=. 
'http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/2.22/gtk+-bundle_2.22.0-20101016_win32.zip'
  end.
  1!:44 jpath '~temp'
 _1&fork_jtask_`(2!:0)@.IFUNIX (jpath '~tools/ftp/wget'), ' --no-proxy -O 
gtk.zip ',f
 _1&fork_jtask_`(2!:0)@.IFUNIX (jpath '~tools/zip/unzip'), ' -o gtk.zip -d ', 
jpath '~install/gtk2'
end.
'Exit, and then run gtk frontend by "jconsole gtkide"'
)

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to