If you are running Windows 10 and you haven't tried out WSL (Windows Subsystem for Linux), try it! It's an amazingly useful amalgam of Windows and Linux that lets you run Linux scripts and binaries directly on your Windows machine.
As a simple example, I placed the following three lines in the pre-build script
Code: Select all
chdir /D $(ProjectDirectory)
bash.exe -c 'Project/BuildScripts/pre.sh'
Code: Select all
pubs@PC-PUBS:/mnt/c/Users/pubs/Documents/my_test_project$ cat Project/BuildScripts/pre.sh
#!/bin/bash
find . -name "*.htm" > files.txt
Note that these commands are running from within the Project directory in the Windows filesystem, but with the full power of just about anything you can run in Linux!pubs@PC-PUBS:/mnt/c/Users/pubs/Documents/my_test_project$ ls -l files.txt
-rwxrwxrwx 1 root root 195719 Apr 10 10:15 files.txt
pubs@PC-PUBS:/mnt/c/Users/pubs/Documents/my_test_project$ wc files.txt
3163 4071 195719 files.txt
There is one wrinkle to pre-build and post-built scripts I haven't figured out yet, though. How can I get output from my build scripts included in the *.mclog file?