aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-07-06 20:53:02 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-07-06 20:53:02 +0300
commit19712652b72050eebad6ea2ed24f25496f75ed9f (patch)
treef49ecbd09f82aea8ea06d1f9dda50801e38742c3
parent50985a6ec26210ce5921237fafd9846eec1bf40f (diff)
downloadmeson-19712652b72050eebad6ea2ed24f25496f75ed9f.zip
meson-19712652b72050eebad6ea2ed24f25496f75ed9f.tar.gz
meson-19712652b72050eebad6ea2ed24f25496f75ed9f.tar.bz2
Added man page for wraptool.
-rwxr-xr-xinstall_meson.py12
-rw-r--r--man/wraptool.138
2 files changed, 50 insertions, 0 deletions
diff --git a/install_meson.py b/install_meson.py
index b337726..2fc8f68 100755
--- a/install_meson.py
+++ b/install_meson.py
@@ -45,10 +45,12 @@ bin_script = os.path.join(script_dir, 'meson.py')
gui_script = os.path.join(script_dir, 'mesongui.py')
conf_script = os.path.join(script_dir, 'mesonconf.py')
intro_script = os.path.join(script_dir, 'mesonintrospect.py')
+wraptool_script = os.path.join(script_dir, 'wraptool.py')
bin_name = os.path.join(bin_dir, 'meson')
gui_name = os.path.join(bin_dir, 'mesongui')
conf_name = os.path.join(bin_dir, 'mesonconf')
intro_name = os.path.join(bin_dir, 'mesonintrospect')
+wraptool_name = os.path.join(bin_dir, 'wraptool')
man_dir = os.path.join(install_root, 'share/man/man1')
in_manfile = 'man/meson.1'
out_manfile = os.path.join(man_dir, 'meson.1.gz')
@@ -58,12 +60,16 @@ in_confmanfile = 'man/mesonconf.1'
out_confmanfile = os.path.join(man_dir, 'mesonconf.1.gz')
in_intromanfile = 'man/mesonintrospect.1'
out_intromanfile = os.path.join(man_dir, 'mesonintrospect.1.gz')
+in_wrapmanfile = 'man/wraptool.1'
+out_wrapmanfile = os.path.join(man_dir, 'wraptool.1.gz')
rpmmacros_dir = os.path.join(install_root, 'lib/rpm/macros.d')
symlink_value = os.path.relpath(bin_script, os.path.dirname(bin_name))
guisymlink_value = os.path.relpath(gui_script, os.path.dirname(gui_name))
confsymlink_value = os.path.relpath(conf_script, os.path.dirname(conf_name))
introsymlink_value = os.path.relpath(intro_script, os.path.dirname(intro_name))
+wrapsymlink_value = os.path.relpath(intro_script, os.path.dirname(intro_name))
+
files = glob.glob('*.py')
files += glob.glob('*.ui')
@@ -101,15 +107,21 @@ try:
os.unlink(intro_name)
except FileNotFoundError:
pass
+try:
+ os.unlink(wraptool_name)
+except FileNotFoundError:
+ pass
os.symlink(symlink_value, bin_name)
os.symlink(guisymlink_value, gui_name)
os.symlink(confsymlink_value, conf_name)
os.symlink(introsymlink_value, intro_name)
+os.symlink(wrapsymlink_value, wraptool_name)
print('Installing manfiles to %s.' % man_dir)
open(out_manfile, 'wb').write(gzip.compress(open(in_manfile, 'rb').read()))
open(out_confmanfile, 'wb').write(gzip.compress(open(in_confmanfile, 'rb').read()))
open(out_guimanfile, 'wb').write(gzip.compress(open(in_guimanfile, 'rb').read()))
open(out_intromanfile, 'wb').write(gzip.compress(open(in_intromanfile, 'rb').read()))
+open(out_wrapmanfile, 'wb').write(gzip.compress(open(in_wrapmanfile, 'rb').read()))
print('Installing modules to %s.' % module_dir)
if os.path.exists('modules/__pycache__'):
diff --git a/man/wraptool.1 b/man/wraptool.1
new file mode 100644
index 0000000..1756f76
--- /dev/null
+++ b/man/wraptool.1
@@ -0,0 +1,38 @@
+.TH WRAPTOOL "1" "May 2015" "meson 0.24.0" "User Commands"
+.SH NAME
+wraptool - source dependency downloader
+.SH DESCRIPTION
+
+Wraptool is a helper utility to manage source dependencies
+using the wrapdb database.
+
+.B wraptool <
+.I command
+.B > [
+.I options
+.B ]
+
+You should run this command in the top level source directory
+of your project.
+
+.SS "Options:"
+.TP
+\fBlist\fR
+list all available projects
+.TP
+\fBsearch\fR
+search projects by name
+.TP
+\fBinstall\fR
+install a project with the given name
+.TP
+\fBupdate\fR
+update the specified project to latest available version
+.TP
+\fBinfo\fR
+show available versions of the specified project
+.TP
+\fBstatus\fR
+show installed and available versions of currently used subprojects
+.SH SEE ALSO
+http://wrapdb.mesonbuild.com/