Changeset 2949 for ipk/runipk.sh


Ignore:
Timestamp:
Apr 16, 2010, 7:30:45 PM (16 years ago)
Author:
obi
Message:

[ipk] add shrink bins, png, pys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipk/runipk.sh

    r2947 r2949  
    133133
    134134rm -r `find "$HOME"/ipk -type d -name "*.svn"`
     135
     136###################  SHRINK PYTHON FILES  #########################
     137
     138"$HOME"/ipk/scripts/kf-pyshrink.sh ./ "$HOME"/ipk/source "$PYTHONVER" "$SKIPPEDSHRINK"
    135139
    136140###
     
    163167mkdir "$HOME"/ipk/preview
    164168
     169###################  SHRINK PNG FILES  #########################
     170
     171PNGFILES=`find "$HOME"/ipk/source -type f -name "*.png" -print`
     172
     173for DIR in $PNGFILES; do
     174        echo "PNG: $DIR"
     175        /usr/bin/advpng -4 -z $DIR #> /dev/null 2>&1
     176done
     177
     178###################  STRIPPED ALL FILES  #########################
     179
     180FILEALL=`find "$HOME"/ipk/source -name "*" -print
     181
     182if ( test -f "$HOME"/ipk/scripts/sh4-linux-strip ); then
     183        echo ""
     184        echo "Files strippen"
     185        echo ""
     186        for FILE in $FILEALL
     187        do
     188                echo $FILE | grep ".ko" >/dev/null 2>&1
     189                if [ $? -eq 0 ]; then param="--strip-unneeded --remove-section=.comment"; else param="-s --remove-section=.comment"; fi
     190                "$HOME"/ipk/scripts/sh4-linux-strip $param $FILE > /dev/null 2>&1
     191                if [ $? -eq 0 ]; then
     192                        echo "Strippe: $FILE"
     193                fi
     194        done
     195else
     196        echo ""
     197        echo "Files strippen konnte nicht durchgefuehrt werden, da sh4-linux-strip fehlt."
     198fi
     199
     200
    165201for DIR in $LIST; do
    166202        echo "$DIR"
Note: See TracChangeset for help on using the changeset viewer.