Browse code

Rebranded all man files

Jade Levesque authored on 2017-06-01 22:26:53
Showing 1 changed files
... ...
@@ -62,24 +62,26 @@ linedel "There are also mailing lists in place" share/man/man1/help.1
62 62
 ox_replace() {
63 63
 	for file in ${SRC_DIR}/$1/*
64 64
 	do
65
-		echo $file
66
-		rfile=$(echo $file | sed 's^'"$SRC_DIR"'^^' | sed 's^/^^')
67
-		echo $rfile
68
-		if grep ".Ox \." $file
65
+		if echo $file | grep "\.[123456789]$"
69 66
 		then
70
-			rep ".Ox \." "LibertyBSD\." "$rfile"
71
-		fi
72
-		if grep ".Ox \," $file
73
-		then
74
-			rep ".Ox \," "LibertyBSD\," "$rfile"
75
-		fi
76
-		if grep ".Ox \:" $file
77
-		then
78
-			rep ".Ox \:" "LibertyBSD\:" "$rfile"
79
-		fi
80
-		if grep ".Ox$" $file
81
-		then
82
-			rep ".Ox$" "LibertyBSD" "$rfile"
67
+			rfile=$(echo $file | sed 's^'"$SRC_DIR"'^^' | sed 's^/^^')
68
+			echo $rfile
69
+			if grep ".Ox \." $file
70
+			then
71
+				rep ".Ox \." "LibertyBSD\." "$rfile"
72
+			fi
73
+			if grep ".Ox \," $file
74
+			then
75
+				rep ".Ox \," "LibertyBSD\," "$rfile"
76
+			fi
77
+			if grep ".Ox \:" $file
78
+			then
79
+				rep ".Ox \:" "LibertyBSD\:" "$rfile"
80
+			fi
81
+			if grep ".Ox$" $file
82
+			then
83
+				rep ".Ox$" "LibertyBSD" "$rfile"
84
+			fi
83 85
 		fi
84 86
 	done
85 87
 }
... ...
@@ -90,6 +92,19 @@ do
90 92
 	ox_replace "share/man/$mandir"
91 93
 done
92 94
 
95
+bindirectories="bin sbin usr.bin usr.sbin"
96
+for bindir in $bindirectories
97
+do
98
+	for dir in ${SRC_DIR}/$bindir/*
99
+	do
100
+		if [ -d $dir ]
101
+		then
102
+			fixdir="$(echo "$dir" | sed 's^'"${SRC_DIR}"'/^^')"
103
+			ox_replace "$fixdir"
104
+		fi
105
+	done
106
+done
107
+
93 108
 filecp files/man/release.8 share/man/man8/release.8
94 109
 
95 110
 # Add Free Software-related man pages