st-custom/build.sh

21 lines
532 B
Bash
Executable File

#!/bin/sh
cp -f config.mk Makefile patches.h st-flexipatch/
flexipatch-finalizer/flexipatch-finalizer.sh -r -d st-flexipatch -o st-final
git -C st-flexipatch reset --hard HEAD && git -C st-flexipatch clean -fd
for patch in patches/*.diff; do
patch -d st-final <"$patch"
done
cp -f config.h st-final/
cd st-final || exit 1
if [ "$1" = "-i" ]; then
sudo make install
elif [ "$1" = "-ti" ]; then
mkdir -p /usr/local/share/terminfo/s/
make terminfo
cp -a terminfo/s/* /usr/local/share/terminfo/s/
else
make
fi