]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update fscore_pb to work with git
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Mar 2011 19:18:08 +0000 (14:18 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 17 Mar 2011 19:18:08 +0000 (14:18 -0500)
support-d/fscore_pb

index fe3dac02607e5b6cfa57b1f586024fdd04027215..ea63ebd295c4c92c3d91b7f92d7b1fc8ebd5693f 100755 (executable)
@@ -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