summaryrefslogtreecommitdiff
path: root/svnup.sh
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-11 19:35:50 +0000
committerpasky <pasky@openttd.org>2005-03-11 19:35:50 +0000
commit76961e1953a79dc449ce308e6d84ff5e8b0d90a3 (patch)
tree0a91ff534e384d04b72dca7e2b9b1e1a01d6288a /svnup.sh
parenta25e6eb6bbe2d2a28e599e9a309ecf60758faf89 (diff)
downloadopenttd-76961e1953a79dc449ce308e6d84ff5e8b0d90a3.tar.xz
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
Diffstat (limited to 'svnup.sh')
-rwxr-xr-xsvnup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/svnup.sh b/svnup.sh
index a2d34f222..bb0adee78 100755
--- a/svnup.sh
+++ b/svnup.sh
@@ -3,6 +3,10 @@
# This is only useful for users of CLI based SVN clients
# Written by Bjarni
+[ "$PAGER" ] || PAGER=less
+
+
+(
# reads what version you have now
Base=`svn info | grep "Revision" | xargs -n 1 | tail -n 1`
@@ -20,3 +24,5 @@ fi
# displays merged files
cat svn.log|grep "^G"
cat svn.log|grep "^C"
+
+) | $PAGER