1999-04-02 10:21:49 +00:00
|
|
|
|
# $Id: mkputty.mpw,v 1.1.2.7 1999/04/02 10:21:49 ben Exp $
|
1999-03-28 15:23:37 +00:00
|
|
|
|
|
|
|
|
|
set program "{1}"
|
|
|
|
|
shift
|
|
|
|
|
if "{program}" == "" || "{program}" == "68k"
|
1999-04-02 10:21:49 +00:00
|
|
|
|
set program PuTTY.68k
|
1999-03-28 15:23:37 +00:00
|
|
|
|
end
|
|
|
|
|
if "{program}" == "ppc"
|
|
|
|
|
set program PuTTY.ppc
|
|
|
|
|
end
|
|
|
|
|
if "{program}" == "fat"
|
1999-04-02 10:21:49 +00:00
|
|
|
|
set program PuTTY
|
1999-03-28 15:23:37 +00:00
|
|
|
|
end
|
1999-03-28 02:06:11 +00:00
|
|
|
|
|
1999-03-13 16:57:30 +00:00
|
|
|
|
Set makefile Makefile.mpw
|
1999-03-13 16:51:46 +00:00
|
|
|
|
|
|
|
|
|
# Run Make, then execute its output.
|
|
|
|
|
|
|
|
|
|
Echo "# `Date -t` ----- Build of {program}."
|
1999-03-28 02:06:11 +00:00
|
|
|
|
#if (`exists "#"<22>"#"`)
|
|
|
|
|
# echo "# `Date -t` ----- Warning: auto-save file present."
|
|
|
|
|
#end
|
1999-03-13 16:51:46 +00:00
|
|
|
|
Echo "# `Date -t` ----- Analyzing dependencies."
|
|
|
|
|
Begin
|
|
|
|
|
Echo "Set Echo 1"
|
1999-03-27 15:39:46 +00:00
|
|
|
|
Make "{program}" {"Parameters"} -f "{makefile}"
|
1999-03-13 16:51:46 +00:00
|
|
|
|
End > "{program}".makeout
|
|
|
|
|
Echo "# `Date -t` ----- Executing build commands."
|
|
|
|
|
"{program}".makeout
|
|
|
|
|
Delete "{program}".makeout
|
|
|
|
|
Echo "# `Date -t` ----- Done."
|
1999-03-13 18:20:14 +00:00
|
|
|
|
Set type "`files -i -n -x t "{program}" <20> Dev:Null || Set Status 0`"
|
|
|
|
|
Set CaseSensitive True #filetype check for DA must be case sensitive
|
|
|
|
|
If "{type}" =~ /<2F> APPL/ OR "{type}" =~ /<2F> MPST/ # application or tool
|
|
|
|
|
Echo -n <20>t; Quote -n "{program}"; Echo -n " "
|
1999-03-13 16:51:46 +00:00
|
|
|
|
End
|