2022-09-17 09:53:52 -04:00
|
|
|
#!/bin/sh
|
2022-12-18 10:25:46 -05:00
|
|
|
if [ ! -d "/opt/mow" ]; then
|
|
|
|
mkdir /opt/mow
|
|
|
|
fi
|
|
|
|
cp ./.build-mow/mow /opt/mow/bin
|
|
|
|
printf "#!/bin/sh\n" > /opt/mow/run
|
2022-12-20 19:29:36 -05:00
|
|
|
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
|
2022-12-18 10:25:46 -05:00
|
|
|
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
|
2023-02-18 21:20:24 -05:00
|
|
|
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run
|
2022-12-18 10:25:46 -05:00
|
|
|
chmod +x /opt/mow/run
|
|
|
|
chmod +x /opt/mow/bin
|
|
|
|
rm /usr/bin/mow
|
|
|
|
ln -s /opt/mow/run /usr/bin/mow
|