1#! /bin/sh 2# 3# This file is part of the Code::Blocks IDE and licensed under the GNU General Public License, version 3 4# http://www.gnu.org/licenses/gpl-3.0.html 5# 6# Copyright: 2011 Jens Lody 7# 8# $Revision: 10020 $ 9# $Id: update 10020 2014-10-30 07:40:00Z mortenmacfly $ 10# $HeadURL: https://svn.code.sf.net/p/codeblocks/code/trunk/src/plugins/contrib/SpellChecker/update $ 11# 12 13mkdir -p "../../../devel/share/codeblocks/SpellChecker" 14mkdir -p "../../../output/share/codeblocks/SpellChecker" 15cp *.png "../../../devel/share/codeblocks/images/settings/" 16cp *.png "../../../output/share/codeblocks/images/settings/" 17cp OnlineSpellChecking.xml "../../../devel/share/codeblocks/SpellChecker/" 18cp OnlineSpellChecking.xml "../../../output/share/codeblocks/SpellChecker/" 19 20copyImageFiles() { 21 from=$1 22 to=$2 23 echo "Copy ${from} to ${to}" 24 25 # This is done this stupid/convoluted way, because dash/posix doesn't have arrays! 26 dirs="16x16 20x20 24x24 28x28 32x32 40x40 48x48 56x56 64x64" 27 echo "$dirs" | tr ' ' '\n' | while read dir; do 28 echo " Copy ${from}/${dir} to ${to}/${dir}" 29 30 mkdir -p ${to}/${dir} 31 cp -f ${from}/${dir}/*.png ${to}/${dir} > /dev/null 32 done 33} 34 35copyImageFiles rc ../../../devel/share/codeblocks/SpellChecker 36copyImageFiles rc ../../../output/share/codeblocks/SpellChecker 37 38exit 0 39 40