Commits

Josh VanderLinden committed fadf146

Trying out a hook that automatically updates the README

Comments (0)

Files changed (3)

 pkgname=autotunnel
 pkgver=0.3.3
 pkgrel=1
-pkgdesc="Easily create tunnels, reverse tunnels, and socks proxies"
+pkgdesc="Easily create tunnels, reverse tunnels, and SOCKS proxies"
 arch=('any')
 url="http://www.codekoala.com/"
 license=('BSD')
 ==========
 
 ---------------------------------------------------------
-Easily create tunnels, reverse tunnels, and socks proxies
+Easily create tunnels, reverse tunnels, and SOCKS proxies
 ---------------------------------------------------------
 
 :Author: Josh VanderLinden <arch@cloudlery.com>
-:Date:   2012-10-19
-:Copyright: public domain
+:Date:   2012-10-20
+:Copyright: Public Domain
 :Version: 0.3.3
 :Manual section: 1
-:Manual group: system tools
+:Manual group: System Tools
 
 Synopsis
 ========
 
 One interesting option offered by ``autotunnel`` is that of profiles. You may
 have multiple profiles of tunnels, each to different systems with different
-settings.  All profiles should be saved in ``/etc/autotunnel.d`` as ``.conf``
+settings. All profiles should be saved in ``/etc/autotunnel.d`` as ``.conf``
 files. For example, the default profile is ``/etc/autotunnel.d/default.conf``.
 
 There are two ways to call ``autotunnel``:
+#!/bin/bash
+#
+# Pre-commit hook to update the README based on what is in the PKGBUILD
+#
+
+source PKGBUILD
+
+sed -i "s,^:Version: .*,:Version: ${pkgver},;s,^:Date: .*,:Date:   $(date +%Y-%m-%d)," README.rst
+
+git add README.rst