summaryrefslogtreecommitdiff
path: root/shells/tcshrc/files/patch-tcshrc_config
blob: 03d6afa6af183f25a15d3272acfbd1f7d6a7a350 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- ./tcshrc_config.orig	Fri Aug 13 19:21:42 2004
+++ ./tcshrc_config	Tue Dec 26 14:13:16 2006
@@ -36,7 +36,7 @@
 	SYSTEM=y
 	;;
     -v|--verbose)
-	VERBOSE=--verbose
+	VERBOSE=-v
 	;;
     -*)
 	usage
@@ -62,7 +62,18 @@
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.set 	${HOME}/.tcshrc.set
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.alias 	${HOME}/.tcshrc.alias
 	/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.hosts 	${HOME}/.tcshrc.hosts
-	/bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+	
+	if [ "`uname`" != "Linux" ] ; then
+	    if [ -e "${HOME}/.tcshrc.local" ] ; then
+		/bin/cp -f ${VERBOSE} ${HOME}/.tcshrc.local ${HOME}/.tcshrc.local.old
+		/bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local		
+	
+	    else /bin/cp -f ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+		fi
+	    else /bin/cp -u ${VERBOSE} ${SOURCE}/tcshrc.local 	${HOME}/.tcshrc.local
+		
+	fi
+
 	echo " done." >&2
 	exit 0
 fi