2018-12-03 17:23:00 +02:00
|
|
|
#!/usr/bin/env zsh
|
2019-03-07 18:06:22 +02:00
|
|
|
set -x -e
|
2018-12-03 17:23:00 +02:00
|
|
|
ST_REPO=https://git.suckless.org/st
|
|
|
|
ST_SRC=$PWD/st
|
|
|
|
ST_CFG=$PWD/config.h
|
|
|
|
PATCHLIST=(
|
|
|
|
st-bright-bold-text.patch
|
2019-03-07 18:06:22 +02:00
|
|
|
st-clipboard.patch
|
2019-04-17 12:47:05 +03:00
|
|
|
st-direct-terminfo.patch
|
2019-04-23 02:33:35 +03:00
|
|
|
# st-disable-bold-italic-fonts.patch
|
2018-12-03 17:23:00 +02:00
|
|
|
st-disable-intensity-styles.patch
|
2018-12-04 15:15:22 +02:00
|
|
|
)
|
|
|
|
MAKE_OPTS=(
|
|
|
|
PREFIX=$HOME/.local
|
2018-12-03 17:23:00 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
if [[ ! -r $ST_SRC/.git/config ]]; then
|
|
|
|
git clone $ST_REPO $ST_SRC
|
|
|
|
cd $ST_SRC
|
|
|
|
else
|
|
|
|
cd $ST_SRC
|
|
|
|
git reset --hard
|
|
|
|
git clean -fd
|
|
|
|
git pull
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp $ST_CFG .
|
|
|
|
|
|
|
|
for patch in $PATCHLIST; do
|
2019-01-14 13:39:55 +02:00
|
|
|
patch --no-backup-if-mismatch -p1 -i ../$patch
|
2018-12-03 17:23:00 +02:00
|
|
|
done
|
|
|
|
|
2019-01-09 12:40:15 +02:00
|
|
|
make $MAKE_OPTS ${*:-install}
|