summaryrefslogtreecommitdiff
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
commit83df863b6c021768c026cdd0bc85f5ea89ee6ffc (patch)
tree0a91ff534e384d04b72dca7e2b9b1e1a01d6288a
parentfea811a4b7734e57bc982860a23574bdf96beb4b (diff)
downloadopenttd-83df863b6c021768c026cdd0bc85f5ea89ee6ffc.tar.xz
(svn r1992) Show the ./svnup.sh output in $PAGER (less if unset).
-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