Browse Source

pusb_adm manpage

master
Andrea Luzzardi 18 years ago
parent
commit
0a53e090b7
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      fetch_doc.rb

+ 5
- 1
fetch_doc.rb View File

@ -11,7 +11,7 @@ require 'open-uri'
BASE_URI = 'http://www.pamusb.org/wiki/doc/' BASE_URI = 'http://www.pamusb.org/wiki/doc/'
DOC_PATH = './pam_usb/doc/' DOC_PATH = './pam_usb/doc/'
DOCS = [ 'installation', 'upgrading', 'configuration' ] DOCS = [ 'installation', 'upgrading', 'configuration' ]
MANS = [ 'pusb_hotplug' ]
MANS = [ 'pusb_hotplug', 'pusb_adm' ]
REPLACE_LIST = [ REPLACE_LIST = [
# Remove wiki links [[link|name]] # Remove wiki links [[link|name]]
@ -70,6 +70,10 @@ MANS.each do |man|
File.popen("#{cmd} > #{File.join(DOC_PATH, man)}.1", 'w') do |f| File.popen("#{cmd} > #{File.join(DOC_PATH, man)}.1", 'w') do |f|
f.write(doc) f.write(doc)
end end
begin
File.unlink("#{File.join(DOC_PATH, man)}.1.gz")
rescue Exception
end
system("gzip #{File.join(DOC_PATH, man)}.1") system("gzip #{File.join(DOC_PATH, man)}.1")
puts "Done." puts "Done."


Loading…
Cancel
Save