| 
														
															@@ -4,19 +4,19 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # See LICENSE for licensing information 
														 | 
														
														 | 
														
															 # See LICENSE for licensing information 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Run this to generate .html.in or .1.in files from asciidoc files. 
														 | 
														
														 | 
														
															 # Run this to generate .html.in or .1.in files from asciidoc files. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 # Arguments: 
														 | 
														
														 | 
														
															 # Arguments: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-# html|man asciidocpath sedpath outputfile 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+# html|man asciidocpath outputfile 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 set -e 
														 | 
														
														 | 
														
															 set -e 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-if [ $# != 4 ]; then 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+if [ $# != 3 ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   exit 1; 
														 | 
														
														 | 
														
															   exit 1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 fi 
														 | 
														
														 | 
														
															 fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															-output=$4 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-input=`echo $output | $3 -e 's/html\.in$/1\.txt/g' -e 's/1\.in$/1\.txt/g'` 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-base=`echo $output | $3 -e 's/\.html\.in$//g' -e 's/\.1\.in$//g'` 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+output=$3 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 if [ "$1" = "html" ]; then 
														 | 
														
														 | 
														
															 if [ "$1" = "html" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    input=${output%%.html.in}.1.txt 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    base=${output%%.html.in} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if [ "$2" != none ]; then 
														 | 
														
														 | 
														
															     if [ "$2" != none ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       "$2" -d manpage -o $output $input; 
														 | 
														
														 | 
														
															       "$2" -d manpage -o $output $input; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     else 
														 | 
														
														 | 
														
															     else 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -29,6 +29,9 @@ if [ "$1" = "html" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       echo "=================================="; 
														 | 
														
														 | 
														
															       echo "=================================="; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     fi 
														 | 
														
														 | 
														
															     fi 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 elif [ "$1" = "man" ]; then 
														 | 
														
														 | 
														
															 elif [ "$1" = "man" ]; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    input=${output%%.1.in}.1.txt 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    base=${output%%.1.in} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+     
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if test "$2" != none; then 
														 | 
														
														 | 
														
															     if test "$2" != none; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       if $2 -f manpage $input; then 
														 | 
														
														 | 
														
															       if $2 -f manpage $input; then 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         mv $base.1 $output; 
														 | 
														
														 | 
														
															         mv $base.1 $output; 
														 |