Commits

Martin Tournoij committed 0c6c1de

Add docs

  • Participants
  • Parent commits 0400a27
  • Tags verion_1.1

Comments (0)

Files changed (4)

 
 def GetMtree(mtree):
 	"""
-	Read mtree file 
+	Read mtree file
 	"""
 
-	retlist = [ ]
+	retlist = []
 	prev_prefix = ''
 	mtree = open(mtree, 'r')
 	regexp = re.compile('\s+[\w\=]*$')
 			if cur_prefix[:2] == './':
 				cur_prefix = cur_prefix[2:]
 			retlist.append(cur_prefix)
-	
+
 	mtree.close()
 
 	return retlist
 		except:
 			continue
 
-		if val[0] == '"' and val[len(val)-1] == '"':
+		if val[0] == '"' and val[len(val) - 1] == '"':
 			val = val[1:-1]
 		if val == '':
 			continue
 
 	for search, replace in vars:
 		path = path.replace(search, '%%' + replace + '%%')
-	
+
 	if not options['noportdocs']:
 		if path.find('%%DOCSDIR%%') != -1:
 			path = '%%PORTDOCS%%' + path
+.TH "pkg-plist" 1 "pkg-plist 1.1" "Martin Tournoij <martin@arp242.net>"
+.SH NAME
+.P
+pkg\-plist \- Automatically generate a pkg\-list
+.SH SYNOPSIS
+pkg-plist [-hdn] [-p portdir] [-x prefix]
+.SH DESCRIPTION
+.P
+  \fI\-h\fR, \fI\-\-help\fR
+      Print help message and exit
+.P
+  \-\fIx\fR, \fI\-\-prefix\fR
+      Temporary prefix to use (Default: /var/tmp/ptest)
+.P
+  \fI\-p\fR, \fI\-\-portdir\fR
+      Port directory (Default: current directory)
+.P
+  \fI\-d\fR, \fI\-\-noportdocs\fR
+      Do not prefix entries in %%DOCSDIR%% with %%PORTDOCS%%
+.P
+  \fI\-e\fR, \-\-noportexamples
+      Do not prefix entries in %%EXAMPLESSDIR%% with %%PORTEAMPLES%%
+.P
+  \fI\-i\fR, \fI\-\-ignoredoc\fR
+      Ignore all entries in %%DOCSDIR%% (if you use PORTDOCS in the Makefile)
+.P
+  \fI\-s\fR, \fI\-\-skip\fR
+      Skip these variables. Comma separated w/o spaces
+      The following variables are always skipped:
+      LIB32DIR, XAWVER, OSREL, PREFIX, X11BASE, and any varaible with a
+      value of 1 or less characters.
+.SH AUTHORS
+.RS
+.IP \(bu 3
+Martin Tournoij <martin@arp242.net>
+.RE
+.P
+You are free to use, modify, and redistribute pkg\-plist as you see fit. There
+are no restrictions.
+.\" man code generated by txt2tags 2.6 (http://txt2tags.org)
+.\" cmdline: txt2tags -o - --target man pkg-plist.t2t
+*pkg-plist*
+Martin Tournoij <martin@arp242.net>
+_pkg-plist 1.1_
+= NAME =
+pkg-plist - Automatically generate a pkg-list
+= SYNOPSIS =
+pkg-plist [-hdn] [-p portdir] [-x prefix]
+= DESCRIPTION =
+  _-h_, _--help_
+      Print help message and exit
+  -_x_, _--prefix_
+      Temporary prefix to use (Default: /var/tmp/ptest)
+  _-p_, _--portdir_
+      Port directory (Default: current directory)
+  _-d_, _--noportdocs_
+      Do not prefix entries in %%DOCSDIR%% with %%PORTDOCS%%
+  _-e_, --noportexamples
+      Do not prefix entries in %%EXAMPLESSDIR%% with %%PORTEAMPLES%%
+  _-i_, _--ignoredoc_
+      Ignore all entries in %%DOCSDIR%% (if you use PORTDOCS in the Makefile)
+  _-s_, _--skip_
+      Skip these variables. Comma separated w/o spaces
+      The following variables are always skipped:
+      LIB32DIR, XAWVER, OSREL, PREFIX, X11BASE, and any varaible with a
+      value of 1 or less characters.
+= AUTHORS =
+ * Martin Tournoij <mailto:martin@arp242.net>
+You are free to use, modify, and redistribute pkg-plist as you see fit. There
+are no restrictions.
+pkg-plist
+Martin Tournoij <martin@arp242.net>
+pkg-plist 1.1
+
+%
+%!postproc(man): '@@' '\n'
+%!postproc(gwiki): '@@' '\n'
+%
+
+= NAME =
+pkg-plist - Automatically generate a pkg-list
+
+= SYNOPSIS =
+''' pkg-plist [-hdn] [-p portdir] [-x prefix]
+
+= DESCRIPTION =
+  //-h//, //--help//
+      Print help message and exit
+
+  -//x//, //--prefix//
+      Temporary prefix to use (Default: /var/tmp/ptest)
+
+  //-p//, //--portdir//
+      Port directory (Default: current directory)
+
+  //-d//, //--noportdocs//
+      Do not prefix entries in %%DOCSDIR%% with %%PORTDOCS%%
+
+  //-e//, --noportexamples
+      Do not prefix entries in %%EXAMPLESSDIR%% with %%PORTEAMPLES%%
+
+  //-i//, //--ignoredoc//
+      Ignore all entries in %%DOCSDIR%% (if you use PORTDOCS in the Makefile)
+
+  //-s//, //--skip//
+      Skip these variables. Comma separated w/o spaces
+      The following variables are always skipped:@@
+      LIB32DIR, XAWVER, OSREL, PREFIX, X11BASE, and any varaible with a@@
+      value of 1 or less characters.
+
+= AUTHORS =
+- Martin Tournoij <martin@arp242.net>
+
+
+You are free to use, modify, and redistribute pkg-plist as you see fit. There
+are no restrictions.