Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 21st, 2011  |  syntax: Diff  |  size: 0.88 KB  |  hits: 124  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- woof-tree-orig/0setup       2011-05-21 08:18:42.773719364 +0800
  2. +++ woof-tree/0setup    2011-05-21 11:11:13.769718387 +0800
  3. @@ -217,6 +217,11 @@ do
  4.      puppy)
  5.       RETSTAT=0
  6.      ;;
  7. +    scientific)
  8. +     xDLFILE="`basename $DLFILE .gz`"
  9. +     gunzip $DLFILE
  10. +     RETSTAT=$?
  11. +     [ $RETSTAT -eq 0 ] && mv -f $xDLFILE ${PKGLISTFILE}pre
  12.     esac
  13.     if [ $RETSTAT -eq 0 ];then
  14.      echo "...success."
  15. @@ -415,6 +420,13 @@ _END1
  16.    puppy)
  17.     echo "...it's already in the Puppy standard format."
  18.    ;;
  19. +  scientific)
  20. +       [ -f $ONE_PKGLISTS_COMPAT ] && rm -f $ONE_PKGLISTS_COMPAT
  21. +    ./rpm2ppm ${ONE_PKGLISTS_COMPAT}pre $ONE_PKGLISTS_COMPAT $DISTRO_BINARY_COMPAT $DISTRO_COMPAT_VERSION
  22. +       temp_file=`mktemp -u`
  23. +    cat $ONE_PKGLISTS_COMPAT | sort | uniq > $temp_file
  24. +    mv $temp_file $ONE_PKGLISTS_COMPAT
  25. +  ;;
  26.   esac
  27.   echo
  28.   #rm -f ${ONE_PKGLISTS_COMPAT}pre 2>/dev/null