--- DarkGlass_Reworked/buildset.orig 2008-08-03 19:19:08 +0300 +++ DarkGlass_Reworked/buildset 2008-09-25 12:26:18 +0300 @@ -30,67 +30,7 @@ SIZES="128x128 96x96 72x72 64x64 56x56 4 DIRS="actions apps devices filesystems mimetypes" # no actions directory needed, its hardcoded CONVERT_PATH= -TAR_PATH= -COMPRESSOR= -function checkCompressor() { - echo -ne "Checking for bzip2... " - FOUND=`which bzip2` - if [ "$FOUND" != "" ]; then - echo -ne "found $FOUND\n" - COMPRESSOR=$FOUND - return - else - echo -ne " no.\n" - echo -ne "Checking for gzip... " - FOUND=`which gzip` - if [ "$FOUND" != "" ]; then - echo -ne "found $FOUND\n" - COMPRESSOR=$FOUND - return - else - echo -ne " no.\n" - echo -ne "\nNo compressor found (bzip2 | gzip).\n" - exit 1 - fi - fi -} -function checkNeeded() { - echo -ne "Checking for tar... " - FOUND=`which tar` - if [ "$FOUND" != "" ]; then - echo -ne " found $FOUND\n" - TAR_PATH=$FOUND - echo -ne "Checking for convert... " - FOUND=`which convert` - if [ "$FOUND" != "" ]; then - echo -ne " found $FOUND\n" - CONVERT_PATH=$FOUND - return - else - echo -ne " no.\n" - echo -ne "\nNo convert found in path.\n" - exit 1 - fi - else - echo -ne " no.\n" - echo -ne "\nNo tar found in path.\n" - exit 1 - fi -} -function printFound() { - echo -ne "\nDependencies met - this script is using:\n" - echo -ne "\t\t$COMPRESSOR as compressor\n" - echo -ne "\t\t$TAR_PATH as tar path\n" - echo -ne "\t\t$CONVERT_PATH as convert path\n" -} - -echo -ne "This script builds an installable KDE iconset using bash and convert.\n" -echo -ne "Change what you want, add additional sizes, whatever... :)\n" -echo -checkCompressor -checkNeeded -printFound echo #echo -ne "You get your choice of kmenu icons. If your distribution uses a special naming " #echo -ne "convention for the kmenu icon (i.e. Mandrake) you should add the special name for the " @@ -184,15 +124,3 @@ do done echo -ne "\nDone with conversions.\n" -echo -ne "Tarring and compressing.\n" -if test -f $COMPRESSOR - then - tar cf $PACKAGENAME.tar $PACKAGENAME && $COMPRESSOR $PACKAGENAME.tar - echo -ne "\nThe $PACKAGENAME icon set has been built. Use kcontrol to install the icon set.\n" - echo && ls -sh $PACKAGENAME.tar* && echo -fi -echo -ne "Removing all temporary directories...\n" -rm -fr $PACKAGENAME - -echo -ne "\nAll done. ;)\n" -