[PD-dev] setting pd_nt automatically
Hans-Christoph Steiner
hans at eds.org
Wed Oct 13 04:37:14 CEST 2004
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1400 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20041012/c8dfe6c6/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u_main.tk.patch
Type: application/octet-stream
Size: 550 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20041012/c8dfe6c6/attachment.obj>
-------------- next part --------------
.hc
________________________________________________________________________
____
Using ReBirth is like trying to play an 808 with a long stick.
-David Zicarelli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 222 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20041012/c8dfe6c6/attachment-0001.bin>
More information about the Pd-dev
mailing list