summaryrefslogtreecommitdiff
blob: 0f9bc1cf6d9efa30f16b92c16a719a418dddcd2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -urN ncurses-5.3/misc/run_tic.in ncurses-5.3.share/misc/run_tic.in
--- ncurses-5.3/misc/run_tic.in	2001-10-14 08:44:33.000000000 +0800
+++ ncurses-5.3.share/misc/run_tic.in	2004-02-21 15:46:09.000000000 +0800
@@ -81,7 +81,8 @@
 umask 022
 
 # Construct the name of the old (obsolete) pathname, e.g., /usr/lib/terminfo.
-TICDIR=`echo $TERMINFO | sed -e 's%/share/%/lib/%'`
+# make sure only last share directory in the $TERMINFO path is changed to lib
+TICDIR=`echo $TERMINFO | sed -e 's%/share/terminfo$%/lib/terminfo%'`
 
 # Remove the old terminfo stuff; we don't care if it existed before, and it
 # would generate a lot of confusing error messages if we tried to overwrite it.