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

Modified Files:
        install.sh 
Log Message:
check for files inside this dir

Index: install.sh
===================================================================
RCS file: /cvsroot/freevo/website/install.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** install.sh  19 Nov 2003 17:25:11 -0000      1.2
--- install.sh  21 Nov 2003 11:15:59 -0000      1.3
***************
*** 22,26 ****
        echo
        echo -n "lynx http://freevo.sf.net/install.sh";
!       echo " -dump | TYPE=RUNTIME bash -e"
        echo
        exit 0
--- 22,26 ----
        echo
        echo -n "lynx http://freevo.sf.net/install.sh";
!       echo " -dump | TYPE=RUNTIME bash"
        echo
        exit 0
***************
*** 28,34 ****
  fi
  
  echo -n downloading version information ...
  
! mirror=http://heanet.dl.sourceforge.net/sourceforge/freevo
  
  lynx http://freevo.sf.net/current-version -dump -width=200 | { 
--- 28,56 ----
  fi
  
+ echo -n checking for wget .................
+ if which wget >/dev/null 2>/dev/null; then
+     echo found
+ else
+     echo not found
+     echo
+     echo You need wget installed to download the needed packages.
+     echo '(Redhat RPM: wget)'
+     exit 1
+ fi
+ 
+ echo -n checking for stat .................
+ if which stat >/dev/null 2>/dev/null; then
+     echo found
+ else
+     echo not found
+     echo
+     echo You need stat installed to run Freevo
+     echo '(Redhat RPM: coreutils)'
+     exit 1
+ fi
+ 
  echo -n downloading version information ...
  
! mirror=http://osdn.dl.sourceforge.net/sourceforge/freevo
  
  lynx http://freevo.sf.net/current-version -dump -width=200 | { 
***************
*** 62,67 ****
      if [ -e $dest ]; then 
        echo -n removing old version ..............
!       rm -rf $dest
        echo ' done'
      fi
  
--- 84,102 ----
      if [ -e $dest ]; then 
        echo -n removing old version ..............
!       rm -rf $dest/freevo $dest/src $dest/runtime $dest/i18n \
!           $dest/contrib $dest/boot $dest/Docs $dest/*.py \
!           $dest/share/fonts $dest/share/icons $dest/share/images \
!           $dest/share/skins $dest/share/gxine-mediamarks
!       rmdir $dest/share 2>/dev/null
!       if [ -e $dest/share ]; then 
!           echo ' error'
!           echo $dest/share not empty. Please remove the content of this 
!           echo directory and start the installer again.
!           rm -rf /tmp/freevo-$$
!           exit 1
!       fi
        echo ' done'
+     else
+       mkdir -p $dest
      fi
  
***************
*** 70,75 ****
      cd /tmp/freevo-$$
      tar -zxf ~/.freevo/dist/$freevo_version
!     mv * $dest
      cd $dest
      rmdir /tmp/freevo-$$
      echo ' done'
--- 105,111 ----
      cd /tmp/freevo-$$
      tar -zxf ~/.freevo/dist/$freevo_version
!     mv */* $dest/
      cd $dest
+     rmdir /tmp/freevo-$$/*
      rmdir /tmp/freevo-$$
      echo ' done'




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to