patches/tinyfugue-01-installprefix.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 1079 034d3ead6b41
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1079
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     1
--- Makefile.in.old	Fri May  2 20:10:28 2008
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     2
+++ Makefile.in	Fri May  2 20:10:13 2008
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     3
@@ -15,7 +15,7 @@
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     4
 default: files
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     5
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     6
 files all install tf clean uninstall: _force_
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     7
-	@cd src; PATH=${LONGPATH} ${MAKE} $@
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     8
+	@cd src; PATH=${LONGPATH} ${MAKE} IP=$(IP) $@
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
     9
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    10
 _force_:
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    11
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    12
--- unix/unix.mak.old	Fri May  2 20:06:42 2008
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    13
+++ unix/unix.mak	Fri May  2 20:11:21 2008
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    14
@@ -87,13 +87,13 @@
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    15
 	-test -z "$(STRIP)" || $(STRIP) tf$(X) || true
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    16
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    17
 PREFIXDIRS:
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    18
-	test -d "$(bindir)" || mkdir $(bindir)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    19
-	test -d "$(datadir)" || mkdir $(datadir)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    20
+	test -d "$(IP)$(bindir)" || mkdir $(IP)$(bindir)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    21
+	test -d "$(IP)$(datadir)" || mkdir $(IP)$(datadir)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    22
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    23
 install_TF $(TF): tf$(X) $(BUILDERS)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    24
-	-@rm -f $(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    25
-	cp tf$(X) $(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    26
-	chmod $(MODE) $(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    27
+	-@rm -f $(IP)$(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    28
+	cp tf$(X) $(IP)$(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    29
+	chmod $(MODE) $(IP)$(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    30
 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    31
 SYMLINK $(SYMLINK): $(TF)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    32
 	test -z "$(SYMLINK)" || { rm -f $(SYMLINK) && ln -s $(TF) $(SYMLINK); }
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    33
@@ -101,32 +101,32 @@
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    34
 LIBRARY $(TF_LIBDIR): ../tf-lib/tf-help ../tf-lib/tf-help.idx
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    35
 	@echo '## Creating library directory...'
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    36
 #	@# Overly simplified shell commands, to avoid problems on ultrix
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    37
-	-@test -n "$(TF_LIBDIR)" || echo "TF_LIBDIR is undefined."
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    38
-	test -n "$(TF_LIBDIR)"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    39
-	test -d "$(TF_LIBDIR)" || mkdir $(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    40
-	-@test -d "$(TF_LIBDIR)" || echo "Can't make $(TF_LIBDIR) directory.  See if"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    41
-	-@test -d "$(TF_LIBDIR)" || echo "there is already a file with that name."
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    42
-	test -d "$(TF_LIBDIR)"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    43
+	-@test -n "$(IP)$(TF_LIBDIR)" || echo "TF_LIBDIR is undefined."
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    44
+	test -n "$(IP)$(TF_LIBDIR)"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    45
+	test -d "$(IP)$(TF_LIBDIR)" || mkdir $(IP)$(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    46
+	-@test -d "$(IP)$(TF_LIBDIR)" || echo "Can't make $(TF_LIBDIR) directory.  See if"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    47
+	-@test -d "$(IP)$(TF_LIBDIR)" || echo "there is already a file with that name."
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    48
+	test -d "$(IP)$(TF_LIBDIR)"
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    49
 #
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    50
 #	@#rm -f $(TF_LIBDIR)/*;  # wrong: this would remove local.tf, etc.
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    51
 	@echo '## Copying library files...'
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    52
 	cd ../tf-lib; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    53
 	for f in *; do test -f $$f && files="$$files $$f"; done; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    54
-	( cd $(TF_LIBDIR); rm -f $$files tf.help tf.help.index; ); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    55
-	cp $$files $(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    56
-	cd $(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    57
+	( cd $(IP)$(TF_LIBDIR); rm -f $$files tf.help tf.help.index; ); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    58
+	cp $$files $(IP)$(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    59
+	cd $(IP)$(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    60
 	chmod $(MODE) $$files; chmod ugo-wx $$files
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    61
-	-rm -f $(TF_LIBDIR)/CHANGES 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    62
-	cp ../CHANGES $(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    63
-	chmod $(MODE) $(TF_LIBDIR)/CHANGES; chmod ugo-wx $(TF_LIBDIR)/CHANGES
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    64
-	chmod $(MODE) $(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    65
-	-@cd $(TF_LIBDIR); old=`ls replace.tf 2>/dev/null`; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    66
+	-rm -f $(IP)$(TF_LIBDIR)/CHANGES 
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    67
+	cp ../CHANGES $(IP)$(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    68
+	chmod $(MODE) $(IP)$(TF_LIBDIR)/CHANGES; chmod ugo-wx $(IP)$(TF_LIBDIR)/CHANGES
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    69
+	chmod $(MODE) $(IP)$(TF_LIBDIR)
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    70
+	-@cd $(IP)$(TF_LIBDIR); old=`ls replace.tf 2>/dev/null`; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    71
 	if [ -n "$$old" ]; then \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    72
-	    echo "## WARNING: Obsolete files found in $(TF_LIBDIR): $$old"; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    73
+	    echo "## WARNING: Obsolete files found in $(IP)$(TF_LIBDIR): $$old"; \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    74
 	fi
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    75
 	@echo '## Creating links so old library names still work...'
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    76
 #	@# note: ln -sf isn't portable.
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    77
-	@cd $(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    78
+	@cd $(IP)$(TF_LIBDIR); \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    79
 	rm -f bind-bash.tf;    ln -s  kb-bash.tf   bind-bash.tf;    \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    80
 	rm -f bind-emacs.tf;   ln -s  kb-emacs.tf  bind-emacs.tf;   \
034d3ead6b41 2008-05-02 River Tarnell <[email protected]>
rtarnell
parents:
diff changeset
    81
 	rm -f completion.tf;   ln -s  complete.tf  completion.tf;   \