File indexing completed on 2025-01-26 05:13:50
0001 #!/bin/sh 0002 echo -n "Starting up..." 0003 # 0004 # Copyright (C) 2004 Frans Englich <frans.englich@telia.com> 0005 # 0006 # This program is free software; you can redistribute it and/or modify 0007 # it under the terms of the GNU General Public License as published by 0008 # the Free Software Foundation; either version 2 of the License, or 0009 # (at your option) any later version. 0010 # 0011 # This program is distributed in the hope that it will be useful, 0012 # but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 # GNU General Public License for more details. 0015 # 0016 # You should have received a copy of the GNU General Public License 0017 # along with this program; if not, write to the Free Software Foundation, Inc., 0018 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0019 # 0020 # 0021 # This little script assumes that in $PWD/ is a check out of various 0022 # KDE modules, searches them for SVG files and packages them up in a tarball, 0023 # all the files in the toplevel, together with this script and a list of the files(FILES) 0024 # telling what KDE modules/path the svg files were copied from. 0025 # This script is shipped with the kdesdk package. 0026 # 0027 # Author: Frans Englich <frans.englich@telia.com> 0028 0029 0030 # In what directory we should search 0031 SEARCH_DIR="$PWD" 0032 0033 0034 # The name of the tar ball without extension. If you're not 110% sure 0035 # the sources are up to date, remove the date tag' 0036 PKGNAME="kde_crystalsvg-$(date '+%Y-%m-%d')" 0037 0038 0039 # The path to where the package should be written 0040 PKGPATH="$PWD/" 0041 0042 0043 # What nice value to run find and tar with. find is too intensive.. 0044 NICE=15 # Low.. 0045 0046 0047 # Path to the LICENSE file 0048 LICENSE="$SEARCH_DIR"/kdelibs/pics/LICENSE.crystalsvg 0049 0050 0051 # You shouldn't need to edit anything below. 0052 0053 0054 0055 0056 0057 0058 # Sanity checks 0059 if [ ! -d "$SEARCH_DIR" ]; then 0060 echo "$SEARCH_DIR is not an directory. Exiting." 0061 exit 1; 0062 fi 0063 0064 if [ ! -r $LICENSE ]; then 0065 echo "The file \"$LICENSE\" do not exist or is not readable. Exiting." 0066 exit 1; 0067 fi 0068 0069 TDIR=$(mktemp -d "${TMPDIR:-/tmp}/kde_crystalsvg_packageXXXXXX") 0070 PKGDIR="$TDIR/$PKGNAME" 0071 mkdir "$PKGDIR" 0072 0073 echo "done" # Startup 0074 0075 # Find the SVGs 0076 FILES="$PKGDIR/FILES" 0077 echo -n "Searching for the SVG files..." 0078 SVGFILES=$(find "$SEARCH_DIR" -name "cr*.svg*" -type f) 0079 if [ $? -ne 0 ]; then 0080 echo "There was an error when searching for the files. Exiting." >&2 0081 exit 1; 0082 fi 0083 echo "done" # Search 0084 0085 echo -n "Generating README, FILES etc. files..." 0086 # Fill the FILES file 0087 echo "" >> "$FILES" 0088 echo "README - contains general information about this package" >> "$FILES" 0089 echo "FILES - this file" >> "$FILES" 0090 echo "LICENSE - contains the license the SVG files are licensed under" >> "$FILES" 0091 echo "" >> "$FILES" 0092 echo "From the lines below, you can find out in what KDE package and where, the SVG are located" >> $FILES 0093 echo "" >> "$FILES" 0094 echo "$SVGFILES" | sed -e s,"$SEARCH_DIR",,g | sort >> "$FILES" 0095 0096 cp "$LICENSE" "$PKGDIR/LICENSE" 0097 0098 # Copy the SVG files, portable way 0099 for F in $SVGFILES; do cp -- "$F" "$PKGDIR"; done 0100 0101 # Fill the README file 0102 README="$PKGDIR/README" 0103 cat >> "$README" << EOF 0104 0105 Crystal SVG sources from KDE CVS 0106 0107 These are the Crystal SVG vector sources from KDE CVS. 0108 0109 LOCATION 0110 The "FILES" file gives information about the location they come from. 0111 0112 Most come from: kdelibs/pics/crystalsvg You can visit this cvs directory using webcvs: 0113 http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/pics/crystalsvg 0114 Due to the naming the SVGs are at the end of the list. 0115 0116 They are in the form of .svgz, which can be renamed to svg.gz and opened with gzip -d *.svg.gz 0117 0118 Application icons may also be found with the application sources: /<kde_app_suite>/<kde_app_name>/pics e.g. /kdebase/konqueror/pics or /kdeedu/kmplot/pics 0119 0120 The package_svg_files script collected the sources automatically. 0121 0122 THE ART OF MAKING ICONS 0123 If you want to make Crystal Icons, take a look at the Icon Guide. Here you will find information on icon making, submitting icons to kde, technical problems with svg icons, references, software and much more. 0124 http://kde.ground.cz/tiki-index.php?page=Icon+Guide 0125 0126 The smaller icons are hand-fixed after they are exported to pixels. Running the sources directly on your system will probably give poorer results than using the png version of the Crystal SVG set. 0127 0128 The most up to date info for kde artists can be found at the wiki: 0129 http://kde.ground.cz/tiki-index.php?page=KDE+Artists 0130 0131 MISSING SOURCES 0132 Most of the icons are made by Everaldo, initiator and visionairy of the set, while Torsten is highly productive too. Besides Everaldo and Torsten, other artists added icons to the Crystal icon set. For whatever reason, some of these sources are missing. If you ever made a Crystal SVG icon, and see the source is not in this archive, please send the vector source to: icons --at-- kde --dot-- org 0133 If you want feedback on an icon you made: kde-artists --at-- kde --dot-- org 0134 And of course, Everaldo too is interested in your Crystal icons: 0135 "Everaldo" <everaldo --at--everaldo --dot-- com> 0136 0137 Suse has published some Crystal Icons raw material. See the Icon Guide for more information about this. http://kde.ground.cz/tiki-index.php?page=Icon+Guide 0138 0139 SOFTWARE 0140 Many SVGs made with Illustrator will not open in Sodipodi. Karbon14 (KOffice-1.3) will open these SVG files made with AI. Sometimes it takes a while and sometimes it doesn't 0141 get the gradients correct. However, if you then save the file from Karbon14, it will open in Sodipodi. You may also try Sketch, renamed to Skencil. 0142 0143 BUGLIST 0144 Inspired? Take a look at the buglist! 0145 http://bugs.kde.org/buglist.cgi?short_desc_type=allwordssubstr&short_desc=&long_desc_type=allwordssubstr&long_desc=&product=artwork&component=general&version=unspecified&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bugidtype=include&bug_id=&votes=&emailassigned_to1=1&emailtype1=substring&email1=&emailassigned_to2=1&emailreporter2=1&emailcc2=1&emailtype2=substring&email2=&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&order=Reuse+same+sort+as+last+time&cmdtype=doit&newqueryname= 0146 0147 LICENSE & QUESTIONS 0148 License: see LICENSE.crystalsvg 0149 Questions? Write an e-mail to kde-artists --at-- kde --dot-- org 0150 0151 EOF 0152 echo "done" # Generating 0153 0154 0155 0156 # Package it 0157 echo -n "Packaging the files..." 0158 0159 nice -n$NICE tar -cjf "$PKGPATH/$PKGNAME.tar.bz2" -C "$TDIR" "$PKGNAME" 2>/dev/null 0160 0161 if [ $? -ne 0 ]; then 0162 echo "There was an error while packaging the files. Exiting." 0163 exit 1; 0164 fi 0165 echo "done" # Packaging 0166 0167 0168 0169 # Clean up 0170 rm -rf "$TDIR" 0171 0172 0173 0174 # All done 0175 echo "" 0176 echo "Success - the package is called "$PKGNAME", located in $PKGPATH" 0177 echo "" 0178 0179 # EOF