dmenu-custom/build.sh

16 lines
403 B
Bash
Executable File

#!/bin/sh
cp config.mk patches.h dmenu-flexipatch/
flexipatch-finalizer/flexipatch-finalizer.sh -r -d dmenu-flexipatch -o dmenu-final
git -C dmenu-flexipatch reset --hard HEAD && git -C dmenu-flexipatch clean -fd
# for patch in patches/*.diff; do
# patch -d dmenu-final <"$patch"
# done
cp config.h dmenu-final/
cd dmenu-final || exit 1
if [ "$1" = "-i" ]; then
sudo make install
else
make
fi