Commit edc57834 authored by Dick Hollenbeck's avatar Dick Hollenbeck

file maintenance, update some scripts

parent d3f0151a
#!/bin/bash
#
# make icons using Inkscape
# create output directories
cd ../resources/linux/mime/icons/hicolor
rm -r *
mkdir scalable
echo -e '\E[0;34m'"Directory \"scalable\" for .svg icons was created."
# copy sources to the scalable dir
cd ../../../../../bitmaps_png/sources
cp icon_kicad.svg ../../resources/linux/mime/icons/hicolor/scalable/kicad.svg
cp icon_pcbnew.svg ../../resources/linux/mime/icons/hicolor/scalable/pcbnew.svg
cp icon_eeschema.svg ../../resources/linux/mime/icons/hicolor/scalable/eeschema.svg
echo -e '\E[0;34m'"Sources of icons was copied."
# convert .svg files into .png files
cd ../../resources/linux/mime/icons/hicolor/scalable
SIZES="16x16
22x22
24x24
32x32
48x48"
for size in $SIZES
do
sz=${size%x*}
echo -e '\E[0;32m'"\nMaking the mimetypes icons with size $size."
mkdir ../$size
echo -e '\E[0;34m'"Directory $size was created."
mkdir ../$size/mimetypes
echo -e '\E[0;34m'"Subdirectory \"mimetypes\" was created."
tput sgr0
inkscape -f kicad.svg -e ../$size/mimetypes/application-x-kicad-project.png -w $sz -h $sz --export-area-snap
inkscape -f eeschema.svg -e ../$size/mimetypes/application-x-kicad-eeschema.png -w $sz -h $sz --export-area-snap
inkscape -f pcbnew.svg -e ../$size/mimetypes/application-x-kicad-pcbnew.png -w $sz -h $sz --export-area-snap
echo -e '\E[0;34m'"Icons with size $size was created."
if [ $sz -eq 48 ]
then
echo -e '\E[0;32m'"\nMaking the applications icons with size $size."
mkdir ../$size/apps
echo -e '\E[0;34m'"Subdirectory \"apps\" was created."
tput sgr0
inkscape -f kicad.svg -e ../$size/apps/kicad.png -w $sz -h $sz --export-area-snap
inkscape -f eeschema.svg -e ../$size/apps/eeschema.png -w $sz -h $sz --export-area-snap
inkscape -f pcbnew.svg -e ../$size/apps/pcbnew.png -w $sz -h $sz --export-area-snap
echo -e '\E[0;34m'"Icons with size $size was created."
tput sgr0
fi
done
# This is a CMake toolchain file so we can using Mingw to build Windows32 binaries.
# http://vtk.org/Wiki/CMake_Cross_Compiling
# usage
# cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-mingw32.cmake ../
set( CMAKE_SYSTEM_NAME Windows )
set( CMAKE_SYSTEM_PROCESSOR i686 )
#-----<configuration>-----------------------------------------------
# configure only the lines within this <configure> block, typically
set( TC_PATH /usr/bin )
set( CROSS_COMPILE i686-w64-mingw32- )
# specify the cross compiler
set( CMAKE_C_COMPILER ${TC_PATH}/${CROSS_COMPILE}gcc )
set( CMAKE_CXX_COMPILER ${TC_PATH}/${CROSS_COMPILE}g++ )
set( CMAKE_RC_COMPILER ${TC_PATH}/${CROSS_COMPILE}windres )
# where is the target environment
set( CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 )
#-----</configuration>-----------------------------------------------
# search for programs in the build host directories
set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
# for libraries and headers in the target directories
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
# This is a CMake toolchain file for ARM: # This is a CMake toolchain file so we can run Mingw64 to build a Windows64 binaries.
# http://vtk.org/Wiki/CMake_Cross_Compiling # http://vtk.org/Wiki/CMake_Cross_Compiling
# usage # usage
# cmake -DCMAKE_TOOLCHAIN_FILE=../../toolchain-mingw.cmake .. # cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain-mingw64.cmake ../
# It is here to assist Dick with verifying compilation of /new stuff with mingw (under linux)
set( CMAKE_SYSTEM_NAME Windows ) set( CMAKE_SYSTEM_NAME Windows )
set( CMAKE_SYSTEM_PROCESSOR x86_64 )
#-----<configuration>----------------------------------------------- #-----<configuration>-----------------------------------------------
# configure only the lines within this <configure> block, typically # configure only the lines within this <configure> block, typically
# default is specific to Dick's machine, again for testing only: set( TC_PATH /usr/bin )
set( WX_MINGW_BASE /opt/wx2.9-mingw ) set( CROSS_COMPILE x86_64-w64-mingw32- )
# specify the cross compiler # specify the cross compiler
set( CMAKE_C_COMPILER i586-mingw32msvc-gcc ) set( CMAKE_C_COMPILER ${TC_PATH}/${CROSS_COMPILE}gcc )
set( CMAKE_CXX_COMPILER i586-mingw32msvc-g++ ) set( CMAKE_CXX_COMPILER ${TC_PATH}/${CROSS_COMPILE}g++ )
set( CMAKE_RC_COMPILER ${TC_PATH}/${CROSS_COMPILE}windres )
# where is the target environment # where is the target environment
set( CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc ) set( CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 )
include_directories( ${WX_MINGW_BASE}/include )
#-----</configuration>----------------------------------------------- #-----</configuration>-----------------------------------------------
...@@ -36,5 +33,3 @@ set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER ) ...@@ -36,5 +33,3 @@ set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER )
set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY )
set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY )
# try and pre-load this variable, or do it later in ccmake
set( wxWidgets_CONFIG_EXECUTABLE ${WX_MINGW_BASE}/bin/wx-config )
WXCONFIG=wx-config
#WXCONFIG=/opt/wx2.9/bin/wx-config
g++ -g $($WXCONFIG --cppflags) UTF8.cpp -o test $($WXCONFIG --libs)
#!/bin/sh
# A shell script to update the boost subset within KiCad to newer version.
BOOST_VERSION=1_49_0
SRC_BOOST="/tmp/boost_$BOOST_VERSION/boost"
KICAD_BASE="/svn/kicad/testing.checkout"
DST_BOOST="$KICAD_BASE/include/boost"
# control the subset of boost libs used:
BOOST_DIRS="\
archive \
bind \
concept \
config \
detail \
exception \
functional \
heap \
integer \
iterator \
move \
mpl \
multi_index \
optional \
polygon \
preprocessor \
property_tree \
ptr_container \
range \
regex \
serialization \
smart_ptr \
tuple \
typeof \
type_traits \
unordered \
utility \
"
# remove all old BOOST include files using bzr
eval bzr rm --no-backup --quiet "$DST_BOOST/*"
# copy all *.hpp files in the base boost directory:
eval cp "$SRC_BOOST/*.hpp" "$DST_BOOST/"
# copy recursively all chosen boost libraries:
for D in $BOOST_DIRS; do
eval cp -r "$SRC_BOOST/$D" "$DST_BOOST/"
done
# tell bzr about the new files so they become part of the repo.
eval bzr add "$DST_BOOST/*"
eval echo "boost version: $BOOST_VERSION" > "$DST_BOOST/boost_version.txt"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment