forked from ivyl/gedit-mate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
48 lines (43 loc) · 1.04 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/sh
# Kill all runing instances if exists
#killall gedit
# Register rails-related mime types
sudo cp mime/rails.xml /usr/share/mime/packages
# Only supercedes XML (priority update needed)
sudo cp mime/zendframework.xml /usr/share/mime/packages
# Copy language definitions
sudo cp lang-specs/*.lang /usr/share/gtksourceview-2.0/language-specs/
# Update mime type database
sudo update-mime-database /usr/share/mime
# Copy gedit start script
sudo cp bin/g /usr/bin/g
# Copy gedit facilities
if [ ! -d $HOME/.gnome2/gedit ]
then
mkdir -p ~/.gnome2/gedit
fi
# Copy Snippets
if [ ! -d $HOME/.gnome2/gedit/snippets ]
then
mkdir -p ~/.gnome2/gedit/snippets
fi
cp snippets/* ~/.gnome2/gedit/snippets/
# Copy Plugins
if [ ! -d $HOME/.gnome2/gedit/plugins ]
then
mkdir -p ~/.gnome2/gedit/plugins
fi
cp -R plugins/* ~/.gnome2/gedit/plugins
# Copy Styles
if [ ! -d $HOME/.gnome2/gedit/styles ]
then
mkdir -p ~/.gnome2/gedit/styles
fi
cp styles/* ~/.gnome2/gedit/styles
# Copy Fonts
# Copy Snippets
if [ ! -d $HOME/.fonts ]
then
mkdir -p ~/.fonts
fi
cp fonts/* ~/.fonts