-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinstall-macos.sh
More file actions
executable file
·62 lines (53 loc) · 1.63 KB
/
install-macos.sh
File metadata and controls
executable file
·62 lines (53 loc) · 1.63 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash
# Inkscape Symbols Libraries Installer (macOS)
# 24,900+ symbols for Inkscape
echo "============================================"
echo " Inkscape Symbols Libraries Installer"
echo " 24,900+ symbols for Inkscape"
echo "============================================"
echo ""
# Define Inkscape symbols directory (macOS)
INKSCAPE_DIR="$HOME/Library/Application Support/org.inkscape.Inkscape/config/inkscape/symbols"
# Check if directory exists
if [ ! -d "$INKSCAPE_DIR" ]; then
echo "Inkscape symbols directory not found."
echo "Creating: $INKSCAPE_DIR"
mkdir -p "$INKSCAPE_DIR"
if [ $? -ne 0 ]; then
echo "ERROR: Could not create directory."
echo "Please make sure Inkscape is installed."
exit 1
fi
fi
echo "Installing to: $INKSCAPE_DIR"
echo ""
# Get script directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Count SVG files
COUNT=$(ls -1 "$SCRIPT_DIR"/*.svg 2>/dev/null | wc -l)
echo "Found $COUNT symbol libraries to install..."
echo ""
# Copy files
COPIED=0
for file in "$SCRIPT_DIR"/*.svg; do
if [ -f "$file" ]; then
filename=$(basename "$file")
echo "Copying: $filename"
cp "$file" "$INKSCAPE_DIR/"
if [ $? -eq 0 ]; then
((COPIED++))
fi
fi
done
echo ""
echo "============================================"
if [ $COPIED -eq $COUNT ]; then
echo "SUCCESS! Installed $COPIED symbol libraries."
else
echo "Installed $COPIED of $COUNT libraries."
fi
echo "============================================"
echo ""
echo "Please restart Inkscape to use the symbols."
echo "Access via: Object > Symbols (Cmd+Shift+Y)"
echo ""