Skip to content

Commit

Permalink
Build on mswin/mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Sep 4, 2019
1 parent 3d8f512 commit 0e4c5ab
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions build-mswin
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/bin/sh

dirs=*-*
case "$1" in
"-C")
dirs="$2"
shift 2
;;
"-C"*)
dirs="${1#-C}"
shift
;;
esac

echo '-*- mode: compilation -*-'
# default-directory: *

for mk in $(eval find $dirs '-maxdepth 1 -type f -name Makefile -printf "%h\n"'); do
dir="${mk%/*}"
echo
(
set -e
cd "$dir"
echo "* Building in $dir"
if [ -f run.cmd ]; then
exec ./run.cmd nmake -l "$@"
else
exec make "$@"
fi
)
done 2>&1 | sed --unbuffered $'s/\r$//'
echo "* Finished"

0 comments on commit 0e4c5ab

Please sign in to comment.