Skip to content

Commit 5dd60da

Browse files
committed
add jinstall script for linux
1 parent d43828a commit 5dd60da

File tree

7 files changed

+66
-3
lines changed

7 files changed

+66
-3
lines changed

config/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9.7.6
1+
9.7.7

pacman/init.ijs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ISGUI=: 0
1414
INITDONE=: 0
1515
HASFILEACCESS=: 0
1616
HASADDONSDIR=: 0
17+
JINSTALL=: 0
1718
ONLINE=: 0
1819
PKGDATA=: 0 7$a:
1920
SECTION=: ,<'All'

pacman/je_update.ijs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ je_get=: 3 : 0
7474
'jvno plat bits name'=. y
7575
arg=. (je_dlpath''),plat,'/',bits,'/',name
7676
ferase'~temp/',name
77-
echo 'get: ', arg
77+
if. -. JINSTALL do. echo 'get: ', arg end.
7878
httpget arg
7979
fread '~temp/',name
8080
)

pacman/jinstall.ijs

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
NB. jinstall
2+
3+
NB. =========================================================
4+
NB. jinstall v initial J install
5+
NB. called by system installation script
6+
NB.
7+
NB. ide is none/slim/full - Qt IDE selection
8+
NB. addons is none/all - Addons selection
9+
NB.
10+
NB. does:
11+
NB. JE update
12+
NB. Jqt install selected
13+
NB. Addons install selected
14+
NB. desktop shortcuts (if ~/Desktop folder)
15+
16+
NB. =========================================================
17+
jinstall=: 3 : 0
18+
19+
JINSTALL=: 1
20+
21+
'j ide addons'=. 3 {. ;: y
22+
23+
ifide=. -. ide -: 'none'
24+
ifaddons=. -. addons -: 'none'
25+
26+
echo 'Installing ', 1 pick revinfo_j_''
27+
28+
'update' jpkg ''
29+
echo 'Updating J engine...'
30+
je_update''
31+
32+
if. 2~:ftype jpath'~/Desktop' do.
33+
echo 'No Desktop folder, so shortcuts not installed'
34+
else.
35+
echo 'Installing shortcuts...'
36+
shortcut'jbreak'
37+
shortcut'jc'
38+
shortcut'jhs'
39+
if. ifide do. shortcut'jqt' end.
40+
end.
41+
42+
if. ifide do.
43+
echo 'Installing Jqt IDE...'
44+
'install' jpkg 'base library ide/qt'
45+
getqtbin ide
46+
end.
47+
48+
if. addons -: 'all' do.
49+
echo 'Installing Addons...'
50+
'install' jpkg addons
51+
end.
52+
53+
echo 'Installation complete'
54+
55+
exit 0
56+
57+
)

pacman/new.ijs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo LF,'ALL DONE!',LF,'exit this J session and start new session with double cl
2727
i.0 0
2828
)
2929

30-
NB. shortcut 'jc' or 'jhs' or 'jqt' - create desktop launch icon
30+
NB. shortcut 'jbreak' or 'jc' or 'jhs' or 'jqt' - create desktop launch icon
3131
shortcut=: 3 : 0
3232
if. ((<UNAME)e.'OpenBSD';'FreeBSD') do. uname=. 'Linux' else. uname=. UNAME end.
3333
try. ".uname,' y' catchd. echo 'create ',y,' launch icon failed' end.
@@ -129,6 +129,8 @@ Linuxx y
129129

130130
Linuxx=: 3 : 0
131131
select. y
132+
case.'jbreak' do.
133+
linux'jbreak' ;'jbrk';'jyellow.png';LIB
132134
case.'jc' do.
133135
linux'jc' ;'jconsole';'jgray.png';LIB
134136
case. 'jhs' do.

pacman/pacman.jproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ depend.ijs
1010
gitrepo.ijs
1111
httpget.ijs
1212
install.ijs
13+
jinstall.ijs
1314
new.ijs
1415
manifest.ijs
1516
show.ijs

pacman/stdlib.ijs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ JQTVERSION=: '2.5.12'
66
NB. =========================================================
77
NB. do_install v install from jal
88
NB. y is one of:
9+
NB.- 'system ..' - called by system install script
910
NB.- 'qtide' - install/upgrade the Qt IDE
1011
NB.- 'full' - install the full Qt IDE
1112
NB.- 'slim' - install the slim Qt IDE
@@ -14,6 +15,7 @@ NB.- 'gmp' - install libgmp binary
1415
NB.- other - install those packages, i.e. 'install' jpkg other
1516
NB.- gitrepo:name/repo
1617
do_install=: 3 : 0
18+
if. 'system' -: 6 {. y do. jinstall y return. end.
1719
if. -. checkaccess_jpacman_ '' do. return. end.
1820
if. y -: 'gmp' do. do_getgmpbin '' return. end.
1921
if. ':' e. y do. install_gitrepo y return. end.

0 commit comments

Comments
 (0)