Attachment "patch-unix_Makefile_in_demos" to
ticket [2764272f]
added by
stwo
2009-04-15 12:28:26.
Index: tk/unix/Makefile.in
===================================================================
RCS file: /cvsroot/tktoolkit/tk/unix/Makefile.in,v
retrieving revision 1.143.2.3
diff -u -r1.143.2.3 Makefile.in
--- tk/unix/Makefile.in 10 Apr 2009 11:07:32 -0000 1.143.2.3
+++ tk/unix/Makefile.in 15 Apr 2009 04:32:14 -0000
@@ -95,6 +95,9 @@
# Directory in which to install the configuration file tkConfig.sh:
CONFIG_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
+# Directory in which to install the demo files:
+DEMO_INSTALL_DIR = $(INSTALL_ROOT)$(TK_LIBRARY)/demos
+
# The directory containing the Tcl sources and headers appropriate
# for this version of Tk ("srcdir" will be replaced or has already
# been replaced by the configure script):
@@ -787,9 +790,7 @@
done;
install-demos:
- @for i in "$(SCRIPT_INSTALL_DIR)" \
- "$(SCRIPT_INSTALL_DIR)"/demos \
- "$(SCRIPT_INSTALL_DIR)"/demos/images ; \
+ @for i in "$(DEMO_INSTALL_DIR)" "$(DEMO_INSTALL_DIR)"/images ; \
do \
if [ ! -d "$$i" ] ; then \
echo "Making directory $$i"; \
@@ -798,23 +799,23 @@
else true; \
fi; \
done;
- @echo "Installing demos to $(SCRIPT_INSTALL_DIR)/demos/";
+ @echo "Installing demos to $(DEMO_INSTALL_DIR)/";
@for i in $(TOP_DIR)/library/demos/*; \
do \
if [ -f $$i ] ; then \
sed -e '3 s|exec wish|exec wish$(VERSION)|' \
- $$i > "$(SCRIPT_INSTALL_DIR)"/demos/`basename $$i`; \
+ $$i > "$(DEMO_INSTALL_DIR)"/`basename $$i`; \
fi; \
done;
@for i in $(DEMOPROGS); \
do \
- chmod 755 "$(SCRIPT_INSTALL_DIR)"/demos/$$i; \
+ chmod 755 "$(DEMO_INSTALL_DIR)"/$$i; \
done;
@echo "Installing demo images";
@for i in $(TOP_DIR)/library/demos/images/*; \
do \
if [ -f $$i ] ; then \
- $(INSTALL_DATA) $$i "$(SCRIPT_INSTALL_DIR)"/demos/images; \
+ $(INSTALL_DATA) $$i "$(DEMO_INSTALL_DIR)"/images; \
fi; \
done;