[projects/git-slug: 47/170] Man page

glen glen at pld-linux.org
Mon Sep 21 21:42:45 CEST 2015


commit c699c833905e7d76b01156326c4c9fae6125d3da
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Mon Sep 26 00:19:24 2011 +0100

    Man page

 Makefile    |  13 ++++++++
 slug.py.txt | 101 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 114 insertions(+)
---
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..153a39c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+MANDIR=/usr/share/man
+
+man: slug.py.1
+
+man-install:
+	install -D slug.py.1 $(DESTDIR)$(MANDIR)/man1/slug.py.1
+
+slug.py.1: slug.py.xml
+	xmlto man $?
+slug.py.xml: slug.py.txt
+	asciidoc -b docbook -d manpage $?
+
+.PHONY: man man-install
diff --git a/slug.py.txt b/slug.py.txt
new file mode 100644
index 0000000..f3c6a29
--- /dev/null
+++ b/slug.py.txt
@@ -0,0 +1,101 @@
+slug.py(1)
+==========
+
+NAME
+----
+slug.py - tool to interact with PLD git repositories
+
+
+SYNOPSIS
+--------
+[verse]
+'slug.py clone' [-d dir] [-j <threads>] [-r repository]
+                 [-u user] pattern...
+'slug.py fetch' [-d dir] [-j <threads>] [-r repository]
+                 [-u user] pattern...
+'slug.py init' [-d dir] [-j <threads>] [-u user] package...
+'slug.py list' [-b pattern...] [-r repository] pattern...
+'slug.py update' [-d dir] [--depth depth] [-j <threads>] [-n|-nn] [-P]
+                 [-r repository] [-u user] pattern...
+
+
+DESCRIPTION
+-----------
+
+Facilitates common task in work with PLD git repositories
+
+
+OPTIONS
+-------
+
+-d <directory>::
+--packagesdir <directory>::
+    The local repositories are assumed to reside in $HOME/PLD_clone directory. Use this
+    options if you want to use a different location.
+
+-j <threads>::
+    Set the number of threads which are used for fetching operations.
+
+-r <repository>::
+--remoterefs <repository>::
+    The location of special git repository necessary for slug.py operations. By
+    default $HOME/PLD_clone/Refs.git is assumed.
+
+-u <user>::
+--user <user>::
+    the user name to register for pushes in new repositories. If not present value
+    derived from user.email entry in $HOME/.gitconfig is used.
+
+COMMANDS
+--------
+
+'clone' <pattern> ...::
+
+Clone the repositories which names match at least one of <patterns>.
+
+'fetch' <pattern>...::
+For every local repository matching at least one of patterns fetches upstream changes
+and updates remote branches. It is synonymous with 'update -b \* -nn'.
+
+'init' package ....::
+
+Creates list of packages on the server side and initialize local repositories to follow them.
+
+'list'::
+
+Print the names of upstream repositories matching at least one of patterns.
++
+With '-b' <pattern> only repositories containing a branch matching the pattern are
+listed. Multiple '-b' options are allowed.
+
+'update' <pattern>...::
+
+Update the remote branches in the set of packages that match at least one of patterns.
+        -b <pattern>;;
+        --branch <pattern>;;
+            Only the remote branches which names match the pattern are updated. If omitted 
+\'master'
+            is assumed.
+       --depth <depth>;;
+            Fetch at most the specified number of commits for every updated branch.
+        -n;;
+        --newpkgs;;
+            If the local repository does not exist it is initialized and the specified branches are fetched.
+        -nn;;
+        --nonewpkgs;;
+            Update only the existing local repositories. No new local repositories are created. It is the default
+            behaviour.
+        -P;;
+            Remove stale local packages, which were already removed upstream.
+
+CONFIGURATION FILE
+------------------
+
+The behaviour of slug.py can also be configured with file $HOME/.gitconfig. The
+value of all long options, with the exception of '--user option',  can be
+specified in section [PLD] in this file.
+
+AUTHOR
+------
+
+Written by Kacper Kornet <draenog at pld-linux.org>
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list