-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (33 loc) · 1.06 KB
/
install.sh
File metadata and controls
executable file
·40 lines (33 loc) · 1.06 KB
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
#!/bin/bash
# This script installs the Uzbek Latin Hunspell dictionary on different platforms.
# Detect the platform
OS="$(uname)"
case "$OS" in
'Linux')
# Debiloid only
echo "🔧 Copying to /usr/share/hunspell (requires sudo)"
sudo cp ./uz_UZ.dic /usr/share/hunspell/uz_UZ.dic
sudo cp ./uz_UZ.aff /usr/share/hunspell/uz_UZ.aff
sudo cp ./uz_UZ_Cyrl.dic /usr/share/hunspell/uz_UZ_Cyrl.dic
sudo cp ./uz_UZ_Cyrl.aff /usr/share/hunspell/uz_UZ_Cyrl.aff
echo "✅ Installed on Linux"
;;
'Darwin')
echo "🔧 Copying to ~/Library/Spelling"
mkdir -p ~/Library/Spelling
cp ./uz_UZ.dic ~/Library/Spelling/uz_UZ.dic
cp ./uz_UZ.aff ~/Library/Spelling/uz_UZ.aff
cp ./uz_UZ_Cyrl.dic ~/Library/Spelling/uz_UZ_Cyrl.dic
cp ./uz_UZ_Cyrl.aff ~/Library/Spelling/uz_UZ_Cyrl.aff
echo "✅ Installed on macOS"
;;
'FreeBSD')
echo "Detected FreeBSD (not supported yet)"
;;
'WindowsNT' | 'MINGW'* | 'CYGWIN'*)
echo "Detected Windows (not supported by this script)"
;;
*)
echo "Unknown OS: $OS"
;;
esac