Commit dbfbd3b8 authored by Michal Čihař's avatar Michal Čihař

Move end user stuff to examples dir

parent a1809055
......@@ -88,14 +88,14 @@ source. You can either use hooks (see :ref:`hooks`) or just regularly run
With Gettext po files, you might be often bitten by conflict in PO file
headers. To avoid it, you can use shipped merge driver
(:file:`scripts/git-merge-gettext-po`). To use it just put following
(:file:`examples/git-merge-gettext-po`). To use it just put following
configuration to your :file:`.gitconfig`:
.. code-block:: ini
[merge "merge-gettext-po"]
name = merge driver for gettext po files
driver = /path/to/weblate/scripts/git-merge-gettext-po %O %A %B
driver = /path/to/weblate/examples/git-merge-gettext-po %O %A %B
And enable it's use by defining proper attributes in given repository (eg. in
:file:`.git/info/attribute`)::
......
......@@ -93,7 +93,7 @@ Sample configuration for Apache
Following configuration runs Weblate as WSGI, you need to have enable
mod_wsgi:
.. literalinclude:: ../scripts/apache.conf
.. literalinclude:: ../examples/apache.conf
.. _appliance:
......
......@@ -29,12 +29,12 @@
Allow from all
</Directory>
<Directory /usr/share/weblate/scripts/>
<Directory /usr/share/weblate/examples/>
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / /usr/share/weblate/scripts/django.wsgi
WSGIScriptAlias / /usr/share/weblate/examples/django.wsgi
WSGIPassAuthorization On
</VirtualHost>
......@@ -53,8 +53,8 @@ List of features includes:
make -C docs html
sed -i 's@^WEB_ROOT = .*@WEB_ROOT = "%{WLDIR}"@g' settings.py
sed -i 's@^WHOOSH_INDEX = .*@WHOOSH_INDEX = "%{WLDATADIR}"@g' settings.py
sed -i 's@/usr/lib/python.*/site-packages@%{python_sitelib}@g' scripts/apache.conf
sed -i 's@weblate-path@%{WLDIR}@g' scripts/django.wsgi
sed -i 's@/usr/lib/python.*/site-packages@%{python_sitelib}@g' examples/apache.conf
sed -i 's@weblate-path@%{WLDIR}@g' examples/django.wsgi
%install
install -d %{buildroot}/%{WLDIR}
......@@ -79,7 +79,7 @@ ln -s %{WLETCDIR}/settings.py %{buildroot}/%{WLDIR}/settings.py
# Apache config
install -d %{buildroot}/%{_sysconfdir}/apache2/vhosts.d/
install -m 644 scripts/apache.conf %{buildroot}/%{_sysconfdir}/apache2/vhosts.d/weblate.conf
install -m 644 examples/apache.conf %{buildroot}/%{_sysconfdir}/apache2/vhosts.d/weblate.conf
# Whoosh index dir
install -d %{buildroot}/%{WLDATADIR}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment