16 lines
		
	
	
		
			475 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			475 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
| #!/bin/bash
 | |
| 
 | |
| set -o pipefail
 | |
| 
 | |
| OUTPUT=$1
 | |
| 
 | |
| # This requires the installation of `ronn`: sudo gem install ronn
 | |
| for f in cmd/*/README.md;do
 | |
|     # Strtip off cmd/ then strip off README to get the man-file name.
 | |
|     PKGNOCMD="${f#cmd/}"
 | |
|     PKG="${PKGNOCMD%/README.md}"
 | |
|     echo "Creating Man Page: ${f} -> ${OUTPUT}${PKG}.1.gz"
 | |
|     ronn < "$f" | gzip -9 > "${OUTPUT}${PKG}.1.gz" || \
 | |
|       echo "If this produces an error. Install ronn; something like: sudo gem install ronn"
 | |
| done
 |