wok rev 5011

use mv instead of cp -a to save RAM (thanks Eric)
author Rohit Joshi <jozee@slitaz.org>
date Sun Feb 28 19:46:30 2010 +0000 (2010-02-28)
parents d2bd2a1e0a1a
children 1b76b901d772
files get-OpenOffice3/stuff/get-OpenOffice3 get-eclipse-pdt/stuff/get-eclipse-pdt get-java6-jdk/stuff/get-java6-jdk get-java6-jre/stuff/get-java6-jre get-xnviewmp/stuff/get-xnviewmp
line diff
     1.1 --- a/get-OpenOffice3/stuff/get-OpenOffice3	Sun Feb 28 19:11:52 2010 +0100
     1.2 +++ b/get-OpenOffice3/stuff/get-OpenOffice3	Sun Feb 28 19:46:30 2010 +0000
     1.3 @@ -108,6 +108,9 @@
     1.4   (echo "Failed to extract $TARBALL" ; exit 1)
     1.5  status
     1.6  
     1.7 +# extracted pkg can be removed: Save RAM
     1.8 +rm -rf $SOURCE_DIR
     1.9 +
    1.10  cd $TEMP_DIR/*/RPMS
    1.11  
    1.12  # Extract everything from RPMS
    1.13 @@ -121,16 +124,17 @@
    1.14  	
    1.15  # extracted pkg can be removed: Save RAM
    1.16  rm -f desktop-integration/*freedesktop*.rpm
    1.17 -rm -rf $SOURCE_DIR
    1.18 +
    1.19  
    1.20  # Make the package
    1.21  mkdir -p $PACKAGE-$VERSION/fs/usr/lib/openoffice  \
    1.22    $PACKAGE-$VERSION/fs/usr/share
    1.23 - 
    1.24 -cp -a opt/openoffice* $PACKAGE-$VERSION/fs/usr/lib/openoffice
    1.25 -cp -a usr/share/mime $PACKAGE-$VERSION/fs/usr/share
    1.26 -cp -a usr/share/icons $PACKAGE-$VERSION/fs/usr/share
    1.27 -cp -a usr/bin $PACKAGE-$VERSION/fs/usr
    1.28 +
    1.29 +# use mv instead of 'cp -a' to save RAM
    1.30 +mv opt/openoffice* $PACKAGE-$VERSION/fs/usr/lib/openoffice
    1.31 +mv usr/share/mime $PACKAGE-$VERSION/fs/usr/share
    1.32 +mv usr/share/icons $PACKAGE-$VERSION/fs/usr/share
    1.33 +mv usr/bin $PACKAGE-$VERSION/fs/usr
    1.34  
    1.35  # relocalized OOo libexec directory
    1.36  sed -i 's#/opt/#/usr/lib/openoffice/#'  $PACKAGE-$VERSION/fs/usr/bin/openoffice*
     2.1 --- a/get-eclipse-pdt/stuff/get-eclipse-pdt	Sun Feb 28 19:11:52 2010 +0100
     2.2 +++ b/get-eclipse-pdt/stuff/get-eclipse-pdt	Sun Feb 28 19:46:30 2010 +0000
     2.3 @@ -101,9 +101,10 @@
     2.4  mkdir -p $PACKAGE-$VERSION/fs/usr/lib  \
     2.5    $PACKAGE-$VERSION/fs/usr/share/pixmaps \
     2.6    $PACKAGE-$VERSION/fs/usr/share/applications
     2.7 - 
     2.8 -cp -a eclipse $PACKAGE-$VERSION/fs/usr/lib/
     2.9 -cp -a eclipse/icon.xpm $PACKAGE-$VERSION/fs/usr/share/pixmaps/eclipse.xpm
    2.10 +
    2.11 +# use mv instead of 'cp -a' to save RAM
    2.12 +mv eclipse $PACKAGE-$VERSION/fs/usr/lib/
    2.13 +mv eclipse/icon.xpm $PACKAGE-$VERSION/fs/usr/share/pixmaps/eclipse.xpm
    2.14  
    2.15  # Create .desktop file
    2.16  cat >>  $PACKAGE-$VERSION/fs/usr/share/applications/$PACKAGE.desktop <<EOF
     3.1 --- a/get-java6-jdk/stuff/get-java6-jdk	Sun Feb 28 19:11:52 2010 +0100
     3.2 +++ b/get-java6-jdk/stuff/get-java6-jdk	Sun Feb 28 19:46:30 2010 +0000
     3.3 @@ -55,7 +55,9 @@
     3.4  
     3.5  # Make the package
     3.6  mkdir -p $PACKAGE-$VERSION/fs/usr/lib/java 
     3.7 -cp -a jdk${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
     3.8 +
     3.9 +# use mv instead of 'cp -a' to save RAM
    3.10 +mv jdk${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
    3.11  
    3.12  # extracted pkg can be removed: Save RAM
    3.13  rm -rf $TARBALL
     4.1 --- a/get-java6-jre/stuff/get-java6-jre	Sun Feb 28 19:11:52 2010 +0100
     4.2 +++ b/get-java6-jre/stuff/get-java6-jre	Sun Feb 28 19:46:30 2010 +0000
     4.3 @@ -51,7 +51,8 @@
     4.4  
     4.5  # Make the package
     4.6  mkdir -p $PACKAGE-$VERSION/fs/usr/lib/java 
     4.7 -cp -a jre${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
     4.8 +# use mv instead of 'cp -a' to save RAM
     4.9 +mv jre${VERSION} $PACKAGE-$VERSION/fs/usr/lib/java
    4.10  
    4.11  # extracted pkg can be removed: Save RAM
    4.12  rm -rf $TARBALL
     5.1 --- a/get-xnviewmp/stuff/get-xnviewmp	Sun Feb 28 19:11:52 2010 +0100
     5.2 +++ b/get-xnviewmp/stuff/get-xnviewmp	Sun Feb 28 19:46:30 2010 +0000
     5.3 @@ -33,10 +33,13 @@
     5.4  mkdir -p xnviewmp/fs/usr/bin
     5.5  mkdir -p xnviewmp/fs/usr/lib/xnviewmp/
     5.6  mkdir -p xnviewmp/fs/usr/share/xnviewmp/
     5.7 -cp -a lib* xnviewmp/fs/usr/lib/xnviewmp/
     5.8 -cp -a phonon_backend xnviewmp/fs/usr/lib/xnviewmp/
     5.9 -cp -a language xnviewmp/fs/usr/share/xnviewmp/
    5.10 -cp -a xnview xnviewmp/fs/usr/share/xnviewmp/
    5.11 +
    5.12 +# use mv instead of 'cp -a' to save RAM
    5.13 +mv lib* xnviewmp/fs/usr/lib/xnviewmp/
    5.14 +mv phonon_backend xnviewmp/fs/usr/lib/xnviewmp/
    5.15 +mv language xnviewmp/fs/usr/share/xnviewmp/
    5.16 +mv xnview xnviewmp/fs/usr/share/xnviewmp/
    5.17 +
    5.18  cat > xnviewmp/fs/usr/bin/xnview <<EOT
    5.19  #!/bin/sh
    5.20  LD_LIBRARY_PATH=/usr/lib/xnviewmp/