If using cygwin, there is no pbcopy or xsel, but we do have putclip.
authorChris Maynard <Christopher.Maynard@GTECH.COM>
Wed, 29 May 2013 15:59:19 +0000 (15:59 -0000)
committerChris Maynard <Christopher.Maynard@GTECH.COM>
Wed, 29 May 2013 15:59:19 +0000 (15:59 -0000)
svn path=/trunk/; revision=49618

tools/backport-rev

index 344c0d36994cc2e6d79465750b20677d78f14f9d..9b067f20142ce49a92f52e0b8f515c3b418bb1e7 100755 (executable)
@@ -37,8 +37,12 @@ if [ `builtin type -p xsel` ]  ; then
     PBCOPY="xsel --clipboard --input"
 fi
 
     PBCOPY="xsel --clipboard --input"
 fi
 
+if [ `builtin type -p putclip` ]  ; then
+    PBCOPY="putclip"
+fi
+
 if [ -z "$PBCOPY" ] ; then
 if [ -z "$PBCOPY" ] ; then
-    echo "Can't find an clipboard copy. Check if pbcopy or xsel is installed in your system"
+    echo "Can't find an clipboard copy. Check if pbcopy, xsel or putclip is installed in your system"
     exit 1
 fi
 function exit_err
     exit 1
 fi
 function exit_err