MSYS2-packages/colormake-git/colormake.install
2016-05-14 15:21:27 -03:00

12 lines
409 B
Plaintext

post_install() {
# Create the make wrapper without overriding make.exe
echo '#!/bin/bash' > /usr/bin/make.sh
echo 'COLORMAKE_COMMAND=make.exe colormake "${@}"' >> /usr/bin/make.sh
/usr/bin/cmd //c "ren $(cygpath -w /usr/bin/make.sh) make"
}
pre_remove() {
# Remove the make wrapper not make.exe
/usr/bin/cmd //c "del /q $(cygpath -w /usr/bin/make)"
}