Update of /cvsroot/freevo/freevo
In directory sc8-pr-cvs1:/tmp/cvs-serv3250

Modified Files:
        freevo 
Log Message:
Patch from Lars Eggert to make script more sh compliant (less bash-isms)



Index: freevo
===================================================================
RCS file: /cvsroot/freevo/freevo/freevo,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -d -r1.66 -r1.67
*** freevo      17 Aug 2003 13:46:54 -0000      1.66
--- freevo      20 Aug 2003 13:32:03 -0000      1.67
***************
*** 38,42 ****
  
  # Is runapp present? If not it needs to be compiled
! if ! [ -e "$FREEVO_HOME/runapp" ]; then
      echo
      echo "*************************************************************"
--- 38,42 ----
  
  # Is runapp present? If not it needs to be compiled
! if [ ! -e "$FREEVO_HOME/runapp" ]; then
      echo
      echo "*************************************************************"
***************
*** 53,57 ****
  
  # call new x session if needed
! if [ "$call" == "freevo" ] && [ "$1" == "-fs" ]; then
      servernum=0
  
--- 53,57 ----
  
  # call new x session if needed
! if [ "$call" = "freevo" -a "$1" = "-fs" ]; then
      servernum=0
  
***************
*** 65,69 ****
  
  # call helper if the script is called as wrapper
! if [ "$call" == "freevo" ]; then
      script="$FREEVO_HOME/$helpers/$1.py"
      if [ -e "$script" ]; then
--- 65,69 ----
  
  # call helper if the script is called as wrapper
! if [ "$call" = "freevo" ]; then
      script="$FREEVO_HOME/$helpers/$1.py"
      if [ -e "$script" ]; then
***************
*** 87,91 ****
  
  # cd to the freevo directory if necessary
! if ! [ -e src/identifymedia.py ]; then
      cd $FREEVO_HOME
      unset FREEVO_HOME
--- 87,91 ----
  
  # cd to the freevo directory if necessary
! if [ ! -e src/identifymedia.py ]; then
      cd $FREEVO_HOME
      unset FREEVO_HOME
***************
*** 109,113 ****
  
  # Help
! if [ "$1" = "--help" ] || [ "$1" = "-" ] ; then
      echo "freevo [ script | options]"
      echo "options:"
--- 109,113 ----
  
  # Help
! if [ "$1" = "--help" -o "$1" = "-" ] ; then
      echo "freevo [ script | options]"
      echo "options:"
***************
*** 147,154 ****
  # Is freevo.conf present? If not, ./configure is needed
  # Check the possible locations in prio order
! if ! [ -e $FREEVO_STARTDIR/freevo.conf ]; then
!     if ! [ -e $HOME/.freevo/freevo.conf ]; then
!         if ! [ -e /etc/freevo/freevo.conf ]; then
!             if ! [ -e ./freevo.conf ]; then
                  echo "Please run 'freevo setup' first (freevo.conf not found)"
                  exit 1
--- 147,154 ----
  # Is freevo.conf present? If not, ./configure is needed
  # Check the possible locations in prio order
! if [ ! -e $FREEVO_STARTDIR/freevo.conf ]; then
!     if [ ! -e $HOME/.freevo/freevo.conf ]; then
!         if [ ! -e /etc/freevo/freevo.conf ]; then
!             if [ ! -e ./freevo.conf ]; then
                  echo "Please run 'freevo setup' first (freevo.conf not found)"
                  exit 1
***************
*** 198,202 ****
          PID=`cat $PID_FILE`
          RUNNING=`ps -ef | grep " $PID " | grep $APP`
!         if ! [ "$RUNNING" = "" ] ; then
            echo "Freevo's $APP is already running as process $PID."
            exit 0
--- 198,202 ----
          PID=`cat $PID_FILE`
          RUNNING=`ps -ef | grep " $PID " | grep $APP`
!         if [ ! "$RUNNING" = "" ] ; then
            echo "Freevo's $APP is already running as process $PID."
            exit 0
***************
*** 232,236 ****
      PID=`cat $PID_FILE`
      RUNNING=`ps -ef | grep " $PID " | grep main`
!     if ! [ "$RUNNING" = "" ] ; then
        echo "Freevo is already running as process $PID."
        exit 0
--- 232,236 ----
      PID=`cat $PID_FILE`
      RUNNING=`ps -ef | grep " $PID " | grep main`
!     if [ ! "$RUNNING" = "" ] ; then
        echo "Freevo is already running as process $PID."
        exit 0




-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to