Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cp-dsl-replication
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oceandsl
cp-dsl-replication
Commits
35af74f6
Commit
35af74f6
authored
Apr 28, 2022
by
Sven Gundlach
Browse files
Options
Downloads
Patches
Plain Diff
fix setup scripts
parent
2cf1d516
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
EmacsSetupScript.py
+2
-2
2 additions, 2 deletions
EmacsSetupScript.py
VimSetupScript.py
+3
-7
3 additions, 7 deletions
VimSetupScript.py
with
5 additions
and
9 deletions
EmacsSetupScript.py
+
2
−
2
View file @
35af74f6
...
@@ -8,13 +8,13 @@ nameOfRelease = "org.oceandsl.configuration.ide-1.3.0-SNAPSHOT-ls.jar"
...
@@ -8,13 +8,13 @@ nameOfRelease = "org.oceandsl.configuration.ide-1.3.0-SNAPSHOT-ls.jar"
pathToJar
=
"
/home/
"
+
getpass
.
getuser
()
+
"
/bin/
"
+
nameOfRelease
pathToJar
=
"
/home/
"
+
getpass
.
getuser
()
+
"
/bin/
"
+
nameOfRelease
#get the newest oceandsl lsp
#get the newest oceandsl lsp
os
.
system
(
"
sudo apt update && sudo apt install emacs
"
)
os
.
system
(
"
sudo apt update && sudo apt
-y
install emacs
"
)
Path
(
path
.
expanduser
(
"
~/temp
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/temp
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/bin
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/bin
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
os
.
system
(
"
wget -O
"
+
"
~/bin/
"
+
nameOfRelease
+
"
"
+
gitRepo
+
"
/-/raw/master/
"
+
nameOfRelease
)
os
.
system
(
"
wget -O
"
+
"
~/bin/
"
+
nameOfRelease
+
"
"
+
gitRepo
+
"
/-/raw/master/
"
+
nameOfRelease
)
#get the newest oceandsl-mode for emacs
#get the newest oceandsl-mode for emacs
os
.
system
(
"
wget -O ~/bin/
"
+
gitRepo
+
"
/-/raw/master/oceandsl-mode.el
"
)
os
.
system
(
"
wget -O ~/bin/
oceandsl-mode.el
"
+
gitRepo
+
"
/-/raw/master/oceandsl-mode.el
"
)
data
=
Path
(
path
.
expanduser
(
"
~/bin/oceandsl-mode.el
"
)).
read_text
().
replace
(
"
kali
"
,
getpass
.
getuser
())
data
=
Path
(
path
.
expanduser
(
"
~/bin/oceandsl-mode.el
"
)).
read_text
().
replace
(
"
kali
"
,
getpass
.
getuser
())
Path
(
path
.
expanduser
(
"
~/bin/oceandsl-mode.el
"
)).
write_text
(
data
)
Path
(
path
.
expanduser
(
"
~/bin/oceandsl-mode.el
"
)).
write_text
(
data
)
...
...
This diff is collapsed.
Click to expand it.
VimSetupScript.py
+
3
−
7
View file @
35af74f6
...
@@ -8,16 +8,15 @@ nameOfRelease = "org.oceandsl.configuration.ide-1.3.0-SNAPSHOT-ls.jar"
...
@@ -8,16 +8,15 @@ nameOfRelease = "org.oceandsl.configuration.ide-1.3.0-SNAPSHOT-ls.jar"
pathToJar
=
"
/home/
"
+
getpass
.
getuser
()
+
"
/bin/
"
+
nameOfRelease
pathToJar
=
"
/home/
"
+
getpass
.
getuser
()
+
"
/bin/
"
+
nameOfRelease
os
.
system
(
"
sudo apt update && sudo apt install vim
"
)
os
.
system
(
"
sudo apt update && sudo apt
-y
install vim
"
)
Path
(
path
.
expanduser
(
"
~/temp
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/temp
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
#print(path.expanduser("~/bin"))
#print(path.expanduser("~/bin"))
Path
(
path
.
expanduser
(
"
~/bin
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/bin
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
os
.
system
(
"
wget -O
"
+
"
~/bin/
"
+
nameOfRelease
+
"
"
+
gitRepo
+
"
/-/raw/master/
"
+
nameOfRelease
)
os
.
system
(
"
wget -O
"
+
"
~/bin/
"
+
nameOfRelease
+
"
"
+
gitRepo
+
"
/-/raw/master/
"
+
nameOfRelease
)
os
.
system
(
"
wget -O ~/temp/example.vimrc
"
+
gitRepo
+
"
/-/raw/master/example.vimrc
"
)
os
.
system
(
"
wget -O ~/temp/example.vimrc
"
+
gitRepo
+
"
/-/raw/master/example.vimrc
"
)
#
Wenn
.vimrc
schon existiert müssen wir entweder
merge
n
o
der der entsprechende Code ist auch schon vorhanden dann müssen wir nichts tun
#
if
.vimrc
already exists we either need to
merge o
r it already exists then we don't need to do anything
if
(
os
.
path
.
exists
(
path
.
expanduser
(
"
~/.vimrc
"
))):
if
(
os
.
path
.
exists
(
path
.
expanduser
(
"
~/.vimrc
"
))):
newData
=
Path
(
path
.
expanduser
(
"
~/temp/example.vimrc
"
)).
read_text
().
replace
(
nameOfRelease
,
pathToJar
)
newData
=
Path
(
path
.
expanduser
(
"
~/temp/example.vimrc
"
)).
read_text
().
replace
(
nameOfRelease
,
pathToJar
)
oldData
=
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
read_text
()
oldData
=
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
read_text
()
...
@@ -31,12 +30,9 @@ else:
...
@@ -31,12 +30,9 @@ else:
data
=
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
read_text
().
replace
(
nameOfRelease
,
pathToJar
)
data
=
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
read_text
().
replace
(
nameOfRelease
,
pathToJar
)
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
write_text
(
data
)
Path
(
path
.
expanduser
(
"
~/.vimrc
"
)).
write_text
(
data
)
Path
(
path
.
expanduser
(
"
~/.vim
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
Path
(
path
.
expanduser
(
"
~/.vim
"
)).
mkdir
(
parents
=
True
,
exist_ok
=
True
)
#
Die Plugins werden installiert
#
install plugins
os
.
system
(
"
vim +slient +PlugInstall +qall
"
)
os
.
system
(
"
vim +slient +PlugInstall +qall
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment