mirror of
https://github.com/vinceliuice/WhiteSur-cursors.git
synced 2024-12-03 11:10:10 +00:00
update
This commit is contained in:
parent
1ada17d4e0
commit
8e68939171
2 changed files with 37 additions and 2 deletions
37
build.sh
37
build.sh
|
@ -1,4 +1,39 @@
|
|||
#!/bin/bash
|
||||
#! /usr/bin/env bash
|
||||
|
||||
# check command avalibility
|
||||
has_command() {
|
||||
"$1" -v $1 > /dev/null 2>&1
|
||||
}
|
||||
|
||||
if [ ! "$(which xcursorgen 2> /dev/null)" ]; then
|
||||
echo xorg-xcursorgen needs to be installed to generate the cursors.
|
||||
if has_command zypper; then
|
||||
sudo zypper in xorg-xcursorgen
|
||||
elif has_command apt; then
|
||||
sudo apt install xorg-xcursorgen
|
||||
elif has_command dnf; then
|
||||
sudo dnf install -y xorg-xcursorgen
|
||||
elif has_command dnf; then
|
||||
sudo dnf install xorg-xcursorgen
|
||||
elif has_command pacman; then
|
||||
sudo pacman -S --noconfirm xorg-xcursorgen
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ ! "$(which inkscape 2> /dev/null)" ]; then
|
||||
echo xorg-xcursorgen needs to be installed to generate the cursors.
|
||||
if has_command zypper; then
|
||||
sudo zypper in inkscape
|
||||
elif has_command apt; then
|
||||
sudo apt install inkscape
|
||||
elif has_command dnf; then
|
||||
sudo dnf install -y inkscape
|
||||
elif has_command dnf; then
|
||||
sudo dnf install inkscape
|
||||
elif has_command pacman; then
|
||||
sudo pacman -S --noconfirm inkscape
|
||||
fi
|
||||
fi
|
||||
|
||||
function create {
|
||||
cd "$SRC"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
#! /usr/bin/env bash
|
||||
|
||||
ROOT_UID=0
|
||||
DEST_DIR=
|
||||
|
|
Loading…
Reference in a new issue