From 3f71734246a5f9007b6a0ec1557ccc262559c39d Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 21 Mar 2013 19:08:55 +0100 Subject: tools: switch_wireshark_fedora.sh between svn and pkg --- tools/switch_wireshark_fedora.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 tools/switch_wireshark_fedora.sh (limited to 'tools') diff --git a/tools/switch_wireshark_fedora.sh b/tools/switch_wireshark_fedora.sh new file mode 100755 index 0000000..54bb799 --- /dev/null +++ b/tools/switch_wireshark_fedora.sh @@ -0,0 +1,22 @@ +#!/bin/sh + +wirsrc="$HOME/src/wireshark/" +wirpkg="wireshark wireshark-devel wireshark-gnome" + +if [ $# -lt 1 ]; then + echo "usage: `basename $0` svn|pkg" + exit 1 +fi + +set -x + +if [ $1 == "svn" ]; then + sudo yum remove $wirpkg + cd $wirsrc + make -j 4 + sudo make install +elif [ $1 == "pkg" ]; then + cd $wirsrc + sudo make uninstall + sudo yum install $wirpkg +fi -- cgit v1.2.3-59-g8ed1b