From: Anthony Minessale Date: Thu, 17 Mar 2011 19:18:08 +0000 (-0500) Subject: update fscore_pb to work with git X-Git-Tag: v1.2-rc1~171^2~24 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f67e93ae163b9ac7324257ff3e6d25defac5cfb;p=thirdparty%2Ffreeswitch.git update fscore_pb to work with git --- diff --git a/support-d/fscore_pb b/support-d/fscore_pb index fe3dac0260..ea63ebd295 100755 --- a/support-d/fscore_pb +++ b/support-d/fscore_pb @@ -82,20 +82,25 @@ echo -n "paste=Send&remember=0&poster=$user&format=none&expiry=f&code2=" > $post echo "LSB RELEASE:" >> $post_file echo $line >> $post_file -lsb_release -a >> $post_file +if [ -f /etc/redhat-release ] ; then + cat /etc/redhat-release >> $post_file +else + lsb_release -a >> $post_file +fi echo "CPU INFO:" >> $post_file echo $line >> $post_file cat /proc/cpuinfo >> $post_file -echo "SVN INFO:" >> $post_file +echo "GIT INFO:" >> $post_file echo $line >> $post_file echo -n "Revision: " >> $post_file -if [ -d ".svn" ] ; then - svnversion . >> $post_file - svn stat | grep -v \? >> $post_file +if [ -d ".git" ] ; then + git log -1 | cat >> $post_file + printf "\n\n\n" >> $post_file + git status >> $post_file else - echo "Not run from an svn managed directory." >> $post_file + echo "Not run from an git managed directory." >> $post_file fi echo "GDB BACKTRACE:" >> $post_file