1999-03-13 16:51:46 +00:00
|
|
|
|
Set program PuTTY
|
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}."
|
|
|
|
|
Echo "# `Date -t` ----- Analyzing dependencies."
|
|
|
|
|
Begin
|
|
|
|
|
Echo "Set Echo 1"
|
|
|
|
|
Make {"Parameters"} -f "{makefile}"
|
|
|
|
|
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 " "
|
|
|
|
|
Else If "{type}" =~ /<2F> DFIL/ # desk accessory in Suitcase
|
|
|
|
|
Echo -n <20>t
|
1999-03-13 16:51:46 +00:00
|
|
|
|
Quote -n "Font/DA Mover" "{SystemFolder}"System "{program}";
|
|
|
|
|
Echo -n " # Install DA"
|
1999-03-13 18:20:14 +00:00
|
|
|
|
Else If "{type}" =~ /<2F> dfil/ # desk accessory (System 7)
|
|
|
|
|
Echo -n <20>t
|
1999-03-13 16:51:46 +00:00
|
|
|
|
Quote -n Duplicate -y "{program}" "{SystemFolder}Apple Menu Items";
|
|
|
|
|
Echo -n " # Install DA into Apple Menu"
|
|
|
|
|
End
|