forked from coturn/coturn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes from cd's to pushd/popd Switches from hardcoding to script looping Changed the rm call to act on manpages (.1) files only which adds a bit of safety while still doing the job
- Loading branch information
1 parent
26e233d
commit d6cafb8
Showing
1 changed file
with
23 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
#!/bin/sh | ||
|
||
rm -rf man/man1/* | ||
pushd man/man1 >/dev/null 2>&1 | ||
rm -rf ~0/*.1 | ||
|
||
txt2man -s 1 -t TURN -I turnserver -I turnadmin -I turnutils -I turnutils_uclient -I turnutils_stunclient -I turnutils_rfc5769check -I turnutils_peer -I turnutils_natdiscovery -I turnutils_oauth -B "TURN Server" README.turnserver | sed -e 's/-/\\-/g' > man/man1/turnserver.1 | ||
for _tMB in {admin,server,utils} ; | ||
do | ||
txt2man -s 1 -t TURN \ | ||
-I turn${_tMB} \ | ||
-I turnadmin \ | ||
-I turnutils \ | ||
-I turnutils_uclient \ | ||
-I turnutils_stunclient \ | ||
-I turnutils_rfc5769check \ | ||
-I turnutils_peer \ | ||
-I turnutils_natdiscovery \ | ||
-I turnutils_oauth \ | ||
-B "TURN Server" ~1/README.turn${_tMB} | \ | ||
sed -e 's/-/\\-/g' > turn${_tMB}.1 ; | ||
done | ||
|
||
txt2man -s 1 -t TURN -I turnserver -I turnadmin -I turnutils -I turnutils_uclient -I turnutils_stunclient -I turnutils_rfc5769check -I turnutils_peer -I turnutils_natdiscovery -I turnutils_oauth -B "TURN Server" README.turnadmin | sed -e 's/-/\\-/g'> man/man1/turnadmin.1 | ||
for _tLNK in {uclient,peer,stunclient,natdiscovery,oauth} ; | ||
do | ||
ln -s turnutils.1 turnutils_${_tLNK}.1 ; | ||
done | ||
|
||
txt2man -s 1 -t TURN -I turnserver -I turnadmin -I turnutils -I turnutils_uclient -I turnutils_stunclient -I turnutils_rfc5769check -I turnutils_peer -I turnutils_natdiscovery -I turnutils_oauth -B "TURN Server" README.turnutils | sed -e 's/-/\\-/g' > man/man1/turnutils.1 | ||
|
||
cd man/man1; ln -s turnutils.1 turnutils_uclient.1;cd ../.. | ||
cd man/man1; ln -s turnutils.1 turnutils_peer.1;cd ../.. | ||
cd man/man1; ln -s turnutils.1 turnutils_stunclient.1;cd ../.. | ||
cd man/man1; ln -s turnutils.1 turnutils_natdiscovery.1;cd ../.. | ||
cd man/man1; ln -s turnutils.1 turnutils_oauth.1;cd ../.. | ||
cd man/man1; ln -s turnserver.1 coturn.1;cd ../.. | ||
ln -s turnserver.1 coturn.1 ; | ||
|
||
popd >/dev/null 2>&1 |