Also, you might want to think about makingthe example programs shell
executable as well as scotty executable using something like:
#!/bin/sh
# Tcl sees the next 5 lines as an assignment to variable `kludge'.
# For sh, the two shifts cancel the effect of the set, and then we
# run wish on this script.
set kludge { $*
shift
shift
exec scotty -file $0 $*
}
# Tcl code starts here.
This would be useful since the installed location for scotty:
/tools/scotty-0.9/bin/scotty -nf
is too long as a magic number and the "-nf" is chopped off, so that
scotty starts up in interactive mode rather than reading from the
executable file.
The following patches should fix the install problems:
===================================================================
RCS file: /sources/cvsrepos/scotty_tkined/scotty/Makefile.in,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.in
*** 1.1.1.1 1994/04/11 22:11:34
--- Makefile.in 1994/04/11 23:02:32
***************
*** 35,40 ****
--- 35,43 ----
# Directory in which to install manual entry for scotty:
MAN1_DIR = $(MAN_DIR)/man1
+ # Directory in which to install manual entry for ntping
+ MAN8_DIR = $(MAN_DIR)/man8
+
# To change the compiler switches, for example to change from -O
# to -g, change the following line:
CFLAGS = -O
***************
*** 166,171 ****
--- 169,178 ----
$(INSTALL_PROGRAM) scotty $(BIN_DIR)
@if [ ! -d $(MAN1_DIR) ] ; then \
mkdir -p $(MAN1_DIR); \
+ else /bin/true; \
+ fi
+ @if [ ! -d $(MAN8_DIR) ] ; then \
+ mkdir -p $(MAN8_DIR); \
else /bin/true; \
fi
rm -f $(MAN1_DIR)/scotty.1
===================================================================
RCS file: /sources/cvsrepos/scotty_tkined/scotty/examples/Makefile.in,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Makefile.in
*** 1.1.1.1 1994/04/11 22:11:42
--- Makefile.in 1994/04/11 23:09:17
***************
*** 50,59 ****
install:
for f in $(SRCS) ; do \
! mv -f $$f $$f.bak; \
! echo "#! $(BIN_DIR)/scotty -nf" > $$f; \
! sed -e "1d" < $$f.bak >> $$f; \
! chmod +x $$f; \
done
clean:
--- 50,64 ----
install:
for f in $(SRCS) ; do \
! echo "#! $(BIN_DIR)/scotty -nf" > "$(BIN_DIR)/$$f"; \
! sed -e "1d" < $$f >> "$(BIN_DIR)/$$f"; \
! chmod +x "$(BIN_DIR)/$$f"; \
! done;
! for f in $(MAN1) ; do \
! $(INSTALL_DATA) $$f "$(MAN1_DIR)"; \
! done
! for f in $(MAN8) ; do \
! $(INSTALL_DATA) $$f "$(MAN8_DIR)"; \
done
clean:
-- John
John Rouillard
Special Projects Volunteer University of Massachusetts at Boston
rouilj@cs.umb.edu (preferred) Boston, MA, (617) 287-6480
===============================================================================
My employers don't acknowledge my existence much less my opinions.