Josh VanderLinden avatar 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.