[PD-dev] setting pd_nt automatically
Miller Puckette
mpuckett at man104-1.ucsd.edu
Fri Nov 5 22:27:50 CET 2004
OK.. should appear for 0.38test8...
On Tue, Oct 12, 2004 at 10:37:14PM -0400, Hans-Christoph Steiner wrote:
>
> I am going to be working with u_main.tk/pd.tk a bit to make the menus
> confirm to the Apple and MS styles. I want to suggest a minor change
> which would make working with that file easier:
>
> By changing this in makefile.in:
>
> ------------------------------------------------------------
> $(BIN_DIR)/pd.tk: u_main.tk
> echo set pd_nt @OSNUMBER@ > $(BIN_DIR)/pd.tk
> grep -v "set pd_nt" < u_main.tk >> $(BIN_DIR)/pd.tk
> ------------------------------------------------------------
>
> to this:
>
> ------------------------------------------------------------
> $(BIN_DIR)/pd.tk: u_main.tk
> install -m644 u_main.tk $(BIN_DIR)/pd.tk
> ------------------------------------------------------------
>
> and replacing the first line of u_main.tk:
>
> ------------------------------------------------------------
> set pd_nt 1
> ------------------------------------------------------------
>
> with this:
>
> ------------------------------------------------------------
> if { $tcl_platform(platform) == "windows" } {
> set pd_nt 1
> puts stderr {Configuring for Windows}
> } elseif { $tcl_platform(os) == "Darwin" } {
> set pd_nt 2
> puts stderr {Configuring for MacOS X}
> } else {
> set pd_nt 0
> puts stderr {Configuring for UNIX}
> }
> ------------------------------------------------------------
>
> I attached the diff for the u_main.tk part. I tested this on Windows
> XP and MacOS X 10.3.3 with Pd-0.38-test4.
>
>
>
>
> .hc
>
> ____________________________________________________________________________
>
>
> Using ReBirth is like trying to play an 808 with a long stick.
> -David
> Zicarelli
>
More information about the Pd-dev
mailing list