vim echo_p4_version.sh
输入下面的内容
#!/bin/bash
Has=`p4 cstat ...#have |grep change | awk '$3 > x { x = $3 }; END {print x} ' `
Depot=`p4 changes -m1 |head -n 1`
echo "current dir has version: "$Has
echo "p4 depot version : "$Depot
echo ""
阅读(5565) | 评论(0) | 转发(0) |