Remove unused and unmaintained build and packaging files.
This commit is contained in:
parent
11c369ee1b
commit
a628af7728
Binary file not shown.
|
@ -1,54 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<svg height="360.609" id="svg3578" inkscape:version="0.41" sodipodi:docbase="/datas/Projs/Cliparts Stocker/tmp/AIGA" sodipodi:docname="AIGA_Left_Arrow_1.svg" sodipodi:version="0.32" width="431.322" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:svg="http://www.w3.org/2000/svg">
|
|
||||||
<metadata>
|
|
||||||
<rdf:RDF xmlns:cc="http://web.resource.org/cc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
|
||||||
<cc:Work rdf:about="">
|
|
||||||
<dc:title>AIGA_Symbol_Signs</dc:title>
|
|
||||||
<dc:description>EPS converted from http://aiga.org</dc:description>
|
|
||||||
<dc:subject>
|
|
||||||
<rdf:Bag>
|
|
||||||
<rdf:li>symbol</rdf:li>
|
|
||||||
<rdf:li>mapsym</rdf:li>
|
|
||||||
</rdf:Bag>
|
|
||||||
</dc:subject>
|
|
||||||
<dc:publisher>
|
|
||||||
<cc:Agent rdf:about="http://www.openclipart.org/">
|
|
||||||
<dc:title>Open Clip Art Library</dc:title>
|
|
||||||
</cc:Agent>
|
|
||||||
</dc:publisher>
|
|
||||||
<dc:creator>
|
|
||||||
<cc:Agent>
|
|
||||||
<dc:title>Jean-Victor Balin</dc:title>
|
|
||||||
</cc:Agent>
|
|
||||||
</dc:creator>
|
|
||||||
<dc:rights>
|
|
||||||
<cc:Agent>
|
|
||||||
<dc:title>Jean-Victor Balin</dc:title>
|
|
||||||
</cc:Agent>
|
|
||||||
</dc:rights>
|
|
||||||
<dc:date/>
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
|
||||||
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
|
||||||
<dc:language>en</dc:language>
|
|
||||||
</cc:Work>
|
|
||||||
<cc:License rdf:about="http://web.resource.org/cc/PublicDomain">
|
|
||||||
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
|
||||||
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
|
||||||
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
|
||||||
</cc:License>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<sodipodi:namedview bordercolor="#666666" borderopacity="1.0" id="base" inkscape:current-layer="svg3578" inkscape:cx="305.25953" inkscape:cy="417.84947" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:window-height="543" inkscape:window-width="640" inkscape:window-x="5" inkscape:window-y="70" inkscape:zoom="0.43415836" pagecolor="#ffffff"/>
|
|
||||||
<defs id="defs3580">
|
|
||||||
<marker id="ArrowEnd" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="0" refY="5" viewBox="0 0 10 10">
|
|
||||||
<path d="M 0 0 L 10 5 L 0 10 z" id="path3583"/>
|
|
||||||
</marker>
|
|
||||||
<marker id="ArrowStart" markerHeight="3" markerUnits="strokeWidth" markerWidth="4" orient="auto" refX="10" refY="5" viewBox="0 0 10 10">
|
|
||||||
<path d="M 10 0 L 0 5 L 10 10 z" id="path3586"/>
|
|
||||||
</marker>
|
|
||||||
</defs>
|
|
||||||
<g id="g3588">
|
|
||||||
<path d="M 180.199 360.396L 0 180.197L 180.199 0L 299.048 0L 161.988 137.066L 431.322 137.066L 431.322 224.288L 162.946 224.288L 299.263 360.609L 180.199 360.396z" id="path3590" style="stroke: none; fill: rgb(0, 0, 0);"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
Before Width: | Height: | Size: 116 KiB |
|
@ -1,196 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
||||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
|
||||||
|
|
||||||
<svg
|
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:cc="http://creativecommons.org/ns#"
|
|
||||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
||||||
xmlns:svg="http://www.w3.org/2000/svg"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
||||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
|
||||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
|
||||||
version="1.1"
|
|
||||||
width="600"
|
|
||||||
height="400"
|
|
||||||
id="svg2826"
|
|
||||||
inkscape:version="0.47pre2 r22153"
|
|
||||||
sodipodi:docname="dmgBackground.svg"
|
|
||||||
inkscape:export-filename="/Users/jerry/Repositories/kicad/kicad/packaging/mac-osx/Artwork/dmgBackground.png"
|
|
||||||
inkscape:export-xdpi="90"
|
|
||||||
inkscape:export-ydpi="90">
|
|
||||||
<metadata
|
|
||||||
id="metadata3059">
|
|
||||||
<rdf:RDF>
|
|
||||||
<cc:Work
|
|
||||||
rdf:about="">
|
|
||||||
<dc:format>image/svg+xml</dc:format>
|
|
||||||
<dc:type
|
|
||||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
|
||||||
<dc:title></dc:title>
|
|
||||||
</cc:Work>
|
|
||||||
</rdf:RDF>
|
|
||||||
</metadata>
|
|
||||||
<sodipodi:namedview
|
|
||||||
pagecolor="#ffffff"
|
|
||||||
bordercolor="#666666"
|
|
||||||
borderopacity="1"
|
|
||||||
objecttolerance="10"
|
|
||||||
gridtolerance="10"
|
|
||||||
guidetolerance="10"
|
|
||||||
inkscape:pageopacity="0"
|
|
||||||
inkscape:pageshadow="2"
|
|
||||||
inkscape:window-width="1280"
|
|
||||||
inkscape:window-height="706"
|
|
||||||
id="namedview3057"
|
|
||||||
showgrid="false"
|
|
||||||
inkscape:zoom="1.52"
|
|
||||||
inkscape:cx="238.73307"
|
|
||||||
inkscape:cy="136.65089"
|
|
||||||
inkscape:window-x="0"
|
|
||||||
inkscape:window-y="0"
|
|
||||||
inkscape:window-maximized="1"
|
|
||||||
inkscape:current-layer="svg2826" />
|
|
||||||
<defs
|
|
||||||
id="defs2828">
|
|
||||||
<inkscape:perspective
|
|
||||||
sodipodi:type="inkscape:persp3d"
|
|
||||||
inkscape:vp_x="0 : 200 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_z="600 : 200 : 1"
|
|
||||||
inkscape:persp3d-origin="300 : 133.33333 : 1"
|
|
||||||
id="perspective3061" />
|
|
||||||
<linearGradient
|
|
||||||
id="linearGradient5348">
|
|
||||||
<stop
|
|
||||||
id="stop5350"
|
|
||||||
style="stop-color:#000000;stop-opacity:1"
|
|
||||||
offset="0" />
|
|
||||||
<stop
|
|
||||||
id="stop5352"
|
|
||||||
style="stop-color:#000000;stop-opacity:0"
|
|
||||||
offset="1" />
|
|
||||||
</linearGradient>
|
|
||||||
<linearGradient
|
|
||||||
x1="201.60388"
|
|
||||||
y1="60.693924"
|
|
||||||
x2="631.60358"
|
|
||||||
y2="60.693924"
|
|
||||||
id="linearGradient5356"
|
|
||||||
xlink:href="#linearGradient5348"
|
|
||||||
gradientUnits="userSpaceOnUse" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective181503"
|
|
||||||
inkscape:persp3d-origin="478.34647 : 224.40944 : 1"
|
|
||||||
inkscape:vp_z="956.69293 : 336.61417 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 336.61417 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective550892"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective550919"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective3781"
|
|
||||||
inkscape:persp3d-origin="0.5 : 0.33333333 : 1"
|
|
||||||
inkscape:vp_z="1 : 0.5 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 0.5 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
<marker
|
|
||||||
viewBox="0 0 10 10"
|
|
||||||
refY="5"
|
|
||||||
refX="10"
|
|
||||||
orient="auto"
|
|
||||||
markerWidth="4"
|
|
||||||
markerUnits="strokeWidth"
|
|
||||||
markerHeight="3"
|
|
||||||
id="ArrowStart">
|
|
||||||
<path
|
|
||||||
id="path3586"
|
|
||||||
d="M 10 0 L 0 5 L 10 10 z" />
|
|
||||||
</marker>
|
|
||||||
<marker
|
|
||||||
viewBox="0 0 10 10"
|
|
||||||
refY="5"
|
|
||||||
refX="0"
|
|
||||||
orient="auto"
|
|
||||||
markerWidth="4"
|
|
||||||
markerUnits="strokeWidth"
|
|
||||||
markerHeight="3"
|
|
||||||
id="ArrowEnd">
|
|
||||||
<path
|
|
||||||
id="path3583"
|
|
||||||
d="M 0 0 L 10 5 L 0 10 z" />
|
|
||||||
</marker>
|
|
||||||
<inkscape:perspective
|
|
||||||
id="perspective3885"
|
|
||||||
inkscape:persp3d-origin="215.661 : 120.203 : 1"
|
|
||||||
inkscape:vp_z="431.32199 : 180.3045 : 1"
|
|
||||||
inkscape:vp_y="0 : 1000 : 0"
|
|
||||||
inkscape:vp_x="0 : 180.3045 : 1"
|
|
||||||
sodipodi:type="inkscape:persp3d" />
|
|
||||||
</defs>
|
|
||||||
<image
|
|
||||||
sodipodi:absref="/Applications/Inkscape.app/inkscape_pasted_image_20100116_171239.png"
|
|
||||||
y="-18.414894"
|
|
||||||
x="-113.0907"
|
|
||||||
id="image550894"
|
|
||||||
height="642"
|
|
||||||
width="889"
|
|
||||||
xlink:href="/Applications/Inkscape.app/inkscape_pasted_image_20100116_171239.png"
|
|
||||||
style="opacity:0.67901234"
|
|
||||||
inkscape:export-xdpi="90"
|
|
||||||
inkscape:export-ydpi="90" />
|
|
||||||
<g
|
|
||||||
transform="translate(0,-200)"
|
|
||||||
id="layer1">
|
|
||||||
<text
|
|
||||||
x="83.225609"
|
|
||||||
y="267.271"
|
|
||||||
transform="scale(1.0020366,0.99796753)"
|
|
||||||
id="text2836"
|
|
||||||
xml:space="preserve"
|
|
||||||
style="font-size:55.88646698px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:0.99797261;stroke-opacity:1;font-family:Chalkboard;-inkscape-font-specification:Bitstream Vera Sans Bold"><tspan
|
|
||||||
x="83.225609"
|
|
||||||
y="267.271"
|
|
||||||
id="tspan2838"
|
|
||||||
style="fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:0.99797261;stroke-opacity:1">KiCad EDA Suite</tspan></text>
|
|
||||||
</g>
|
|
||||||
<rect
|
|
||||||
style="opacity:0.77800000000000002;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:2;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
|
||||||
id="rect3811"
|
|
||||||
width="221.02962"
|
|
||||||
height="132.76646"
|
|
||||||
x="40.985184"
|
|
||||||
y="101.25256"
|
|
||||||
rx="1.0058786"
|
|
||||||
ry="0.37196189" />
|
|
||||||
<rect
|
|
||||||
style="opacity:0.778;fill:#8f8f8f;fill-opacity:1;stroke:#000000;stroke-width:2.11835647;stroke-linecap:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
|
|
||||||
id="rect3813"
|
|
||||||
width="89.881645"
|
|
||||||
height="79.88163"
|
|
||||||
x="109.05918"
|
|
||||||
y="299.05923"
|
|
||||||
rx="1.1279253"
|
|
||||||
ry="0.38347483" />
|
|
||||||
<g
|
|
||||||
id="g3588"
|
|
||||||
transform="matrix(0,-0.1247889,0.1247889,0,128.5,294.01714)">
|
|
||||||
<path
|
|
||||||
style="fill:#000000;stroke:none"
|
|
||||||
id="path3590"
|
|
||||||
d="M 180.199,360.396 0,180.197 180.199,0 l 118.849,0 -137.06,137.066 269.334,0 0,87.222 -268.376,0 136.317,136.321 -119.064,-0.213 z" />
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 6.3 KiB |
|
@ -1,40 +0,0 @@
|
||||||
###########
|
|
||||||
# KiCad OSX DMG packaging
|
|
||||||
# Create a bin directory and copy the .app files in
|
|
||||||
# Create a build directory
|
|
||||||
# Then execute the makefile
|
|
||||||
#
|
|
||||||
# Original credits by Adium developers !
|
|
||||||
# http://www.adium.im
|
|
||||||
###########
|
|
||||||
VERSION=`date +%Y%m%d`
|
|
||||||
|
|
||||||
###########
|
|
||||||
# Variables
|
|
||||||
###########
|
|
||||||
BUILD_DIR=build
|
|
||||||
APP_DIR=release
|
|
||||||
KICAD_DIR=$(BUILD_DIR)
|
|
||||||
RELEASE_NAME=kicad-$(VERSION)
|
|
||||||
|
|
||||||
###########
|
|
||||||
# Targets
|
|
||||||
###########
|
|
||||||
all:
|
|
||||||
echo "Copying application bundles"
|
|
||||||
mkdir release
|
|
||||||
cp -R ../../../*/*.app release
|
|
||||||
echo "Building kicad-${VERSION}.dmg"
|
|
||||||
rm -rfv build
|
|
||||||
mkdir build
|
|
||||||
|
|
||||||
cp -r $(APP_DIR)/* $(BUILD_DIR)
|
|
||||||
mkdir -p $(BUILD_DIR)/.background
|
|
||||||
cp Artwork/dmgBackground.png $(BUILD_DIR)/.background
|
|
||||||
./mkalias -r /Applications $(BUILD_DIR)/Applications
|
|
||||||
|
|
||||||
mkdir -p $(BUILD_DIR)/.background
|
|
||||||
|
|
||||||
./make-diskimage.sh $(BUILD_DIR)/$(RELEASE_NAME).dmg $(KICAD_DIR) "KiCad" dmg_kicad.scpt $(ART_DIR)
|
|
||||||
|
|
||||||
@echo "Build finished. `md5 $(BUILD_DIR)/$(RELEASE_NAME).dmg`"
|
|
Binary file not shown.
Binary file not shown.
|
@ -1,78 +0,0 @@
|
||||||
# Create a read-only disk image of the contents of a folder
|
|
||||||
#
|
|
||||||
# Usage: make-diskimage <image_file>
|
|
||||||
# <src_folder>
|
|
||||||
# <volume_name>
|
|
||||||
# <applescript>
|
|
||||||
# <artpath>
|
|
||||||
# <eula_resource_file>
|
|
||||||
|
|
||||||
set -e;
|
|
||||||
|
|
||||||
DMG_DIRNAME=`dirname $1`
|
|
||||||
DMG_DIR=`cd $DMG_DIRNAME > /dev/null; pwd`
|
|
||||||
DMG_NAME=`basename $1`
|
|
||||||
DMG_TEMP_NAME=${DMG_DIR}/rw.${DMG_NAME}
|
|
||||||
SRC_FOLDER=`cd $2 > /dev/null; pwd`
|
|
||||||
VOLUME_NAME=$3
|
|
||||||
|
|
||||||
# optional arguments
|
|
||||||
APPLESCRIPT=$4
|
|
||||||
ART_PATH=$5
|
|
||||||
EULA_RSRC=$6
|
|
||||||
|
|
||||||
# Create the image
|
|
||||||
echo "Creating disk image..."
|
|
||||||
rm -f "${DMG_TEMP_NAME}"
|
|
||||||
hdiutil create -srcfolder "${SRC_FOLDER}" -volname "${VOLUME_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW "${DMG_TEMP_NAME}"
|
|
||||||
|
|
||||||
# mount it
|
|
||||||
echo "Mounting disk image..."
|
|
||||||
MOUNT_DIR="/Volumes/${VOLUME_NAME}"
|
|
||||||
DEV_NAME=`hdiutil attach -readwrite -noverify -noautoopen "${DMG_TEMP_NAME}" | egrep '^/dev/' | sed 1q | awk '{print $1}'`
|
|
||||||
|
|
||||||
cp RightDS_Store "/Volumes/${VOLUME_NAME}/.DS_Store"
|
|
||||||
|
|
||||||
# run applescript
|
|
||||||
if [ ! -z "${APPLESCRIPT}" -a "${APPLESCRIPT}" != "-null-" ]; then
|
|
||||||
# osascript "${APPLESCRIPT}"
|
|
||||||
# pass the applescript our volume name and our artwork path, to its process_disk_image function
|
|
||||||
echo "Running Applescript: ./AdiumApplescriptRunner \"${APPLESCRIPT}\" process_disk_image \"${VOLUME_NAME}\""
|
|
||||||
./AdiumApplescriptRunner "${APPLESCRIPT}" process_disk_image "${VOLUME_NAME}" "${ART_PATH}" || true
|
|
||||||
echo "Done running the applescript..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
# run shell script
|
|
||||||
# if [ ! -z "${SHELLSCRIPT}" -a "${SHELLSCRIPT}" != "-null-" ]; then
|
|
||||||
# ./${SHELLSCRIPT} \"${VOLUME_NAME}\"
|
|
||||||
# fi
|
|
||||||
|
|
||||||
# make sure it's not world writeable
|
|
||||||
echo "Fixing permissions..."
|
|
||||||
chmod -Rf go-w "${MOUNT_DIR}" || true
|
|
||||||
|
|
||||||
# make the top window open itself on mount:
|
|
||||||
if [ -x /usr/local/bin/openUp ]; then
|
|
||||||
/usr/local/bin/openUp "${MOUNT_DIR}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# unmount
|
|
||||||
echo "Unmounting disk image..."
|
|
||||||
hdiutil detach "${DEV_NAME}"
|
|
||||||
|
|
||||||
# compress image
|
|
||||||
echo "Compressing disk image..."
|
|
||||||
hdiutil convert "${DMG_TEMP_NAME}" -format UDBZ -o "${DMG_DIR}/${DMG_NAME}"
|
|
||||||
rm -f "${DMG_TEMP_NAME}"
|
|
||||||
|
|
||||||
# adding EULA resources
|
|
||||||
if [ ! -z "${EULA_RSRC}" -a "${EULA_RSRC}" != "-null-" ]; then
|
|
||||||
echo "adding EULA resources"
|
|
||||||
hdiutil unflatten "${DMG_DIR}/${DMG_NAME}"
|
|
||||||
/Developer/Tools/ResMerger -a "${EULA_RSRC}" -o "${DMG_DIR}/${DMG_NAME}"
|
|
||||||
hdiutil flatten "${DMG_DIR}/${DMG_NAME}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Disk image done"
|
|
||||||
exit 0
|
|
Binary file not shown.
|
@ -1,410 +0,0 @@
|
||||||
#!/bin/bash -e
|
|
||||||
# Install KiCad from source onto either:
|
|
||||||
# -> a Ubuntu/Debian/Mint or
|
|
||||||
# -> a Red Hat
|
|
||||||
# compatible linux system.
|
|
||||||
#
|
|
||||||
# The "install_prerequisites" step is the only "distro dependent" one. That step could be modified
|
|
||||||
# for other linux distros.
|
|
||||||
#
|
|
||||||
# There are 3 package groups in a KiCad install:
|
|
||||||
# 1) Compiled source code in the form of executable programs.
|
|
||||||
# 2) User manuals and other documentation typically as *.pdf files.
|
|
||||||
# 3) a) Schematic parts, b) layout footprints, and c) 3D models for footprints.
|
|
||||||
#
|
|
||||||
# To achieve 1) source is checked out from its repo and compiled by this script then executables
|
|
||||||
# are installed using CMake.
|
|
||||||
# To achieve 2) documentation is checked out from its repo and installed using CMake.
|
|
||||||
# TO achieve 3a) and 3c) they are checked out from their repos and installed using CMake.
|
|
||||||
# To achieve 3b) a global fp-lib-table is put into your home directory which points to
|
|
||||||
# http://github.com/KiCad. No actual footprints are installed locally, internet access is used
|
|
||||||
# during program operation to fetch footprints from github as if it was a remote drive in the cloud.
|
|
||||||
# If you want to install those same KiCad footprints locally, you may run a separate script
|
|
||||||
# named library-repos-install.sh found in this same directory. That script requires that "git" be on
|
|
||||||
# your system whereas this script does not. The footprints require some means to download them and
|
|
||||||
# bzr-git seems not up to the task. wget or curl would also work.
|
|
||||||
|
|
||||||
|
|
||||||
# Since bash is invoked with -e by the first line of this script, all the steps in this script
|
|
||||||
# must succeed otherwise bash will abort at the first non-zero error code. Therefore any script
|
|
||||||
# functions must be crafted to anticipate numerous conditions, such that no command fails unless it
|
|
||||||
# is a serious situation.
|
|
||||||
|
|
||||||
|
|
||||||
# Set where the 3 source trees will go, use a full path
|
|
||||||
WORKING_TREES=~/kicad_sources
|
|
||||||
|
|
||||||
STABLE=5054 # a sensible mix of features and stability
|
|
||||||
TESTING=last:1 # the most recent
|
|
||||||
|
|
||||||
# Set this to STABLE or TESTING or other known revision number:
|
|
||||||
REVISION=$TESTING
|
|
||||||
|
|
||||||
# For info on revision syntax:
|
|
||||||
# $ bzr help revisionspec
|
|
||||||
|
|
||||||
|
|
||||||
# CMake Options
|
|
||||||
OPTS="$OPTS -DBUILD_GITHUB_PLUGIN=ON" # needed by $STABLE revision
|
|
||||||
|
|
||||||
# Python scripting, uncomment only one to enable:
|
|
||||||
|
|
||||||
# Basic python scripting: gives access to wizards like footprint wizards (recommended)
|
|
||||||
# be sure you have python 2.7 installed
|
|
||||||
#OPTS="$OPTS -DKICAD_SCRIPTING=ON"
|
|
||||||
|
|
||||||
# More advanced python scripting: gives access to wizards like footprint wizards and creates a python module
|
|
||||||
# to edit board files (.kicad_pcb files) outside kicad, by python scripts
|
|
||||||
#OPTS="$OPTS -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON"
|
|
||||||
|
|
||||||
# Most advanced python scripting: you can execute python scripts inside Pcbnew to edit the current loaded board
|
|
||||||
# mainly for advanced users
|
|
||||||
#OPTS="$OPTS -DKICAD_SCRIPTING=ON -DKICAD_SCRIPTING_MODULES=ON -DKICAD_SCRIPTING_WXPYTHON=ON"
|
|
||||||
|
|
||||||
# Use https under bazaar to retrieve repos because this does not require a
|
|
||||||
# launchpad.net account. Whereas lp:<something> requires a launchpad account.
|
|
||||||
# https results in read only access.
|
|
||||||
REPOS=https://code.launchpad.net
|
|
||||||
|
|
||||||
# This branch is a bzr/launchpad import of the Git repository
|
|
||||||
# at https://github.com/KiCad/kicad-library.git.
|
|
||||||
# It has schematic parts and 3D models in it.
|
|
||||||
LIBS_REPO=$REPOS/~kicad-product-committers/kicad/library
|
|
||||||
|
|
||||||
SRCS_REPO=$REPOS/~kicad-product-committers/kicad/product
|
|
||||||
DOCS_REPO=$REPOS/~kicad-developers/kicad/doc
|
|
||||||
|
|
||||||
|
|
||||||
usage()
|
|
||||||
{
|
|
||||||
echo ""
|
|
||||||
echo " usage:"
|
|
||||||
echo ""
|
|
||||||
echo "./kicad-install.sh <cmd>"
|
|
||||||
echo " where <cmd> is one of:"
|
|
||||||
echo " --install-or-update (does full installation or update.)"
|
|
||||||
echo " --remove-sources (removes source trees for another attempt.)"
|
|
||||||
echo " --uninstall-libraries (removes KiCad supplied libraries.)"
|
|
||||||
echo " --uninstall-kicad (uninstalls all of KiCad but leaves source trees.)"
|
|
||||||
echo ""
|
|
||||||
echo "example:"
|
|
||||||
echo ' $ ./kicad-install.sh --install-or-update'
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
install_prerequisites()
|
|
||||||
{
|
|
||||||
# Find a package manager, PM
|
|
||||||
PM=$( command -v yum || command -v apt-get )
|
|
||||||
|
|
||||||
# assume all these Debian, Mint, Ubuntu systems have same prerequisites
|
|
||||||
if [ "$(expr match "$PM" '.*\(apt-get\)')" == "apt-get" ]; then
|
|
||||||
#echo "debian compatible system"
|
|
||||||
prerequisite_list="
|
|
||||||
bzr
|
|
||||||
bzrtools
|
|
||||||
build-essential
|
|
||||||
cmake
|
|
||||||
cmake-curses-gui
|
|
||||||
debhelper
|
|
||||||
doxygen
|
|
||||||
grep
|
|
||||||
libbz2-dev
|
|
||||||
libcairo2-dev
|
|
||||||
libglew-dev
|
|
||||||
libglm-dev
|
|
||||||
libssl-dev
|
|
||||||
libwxgtk3.0-dev
|
|
||||||
"
|
|
||||||
|
|
||||||
for p in ${prerequisite_list}
|
|
||||||
do
|
|
||||||
sudo apt-get install $p || exit 1
|
|
||||||
done
|
|
||||||
|
|
||||||
# Only install the scripting prerequisites if required.
|
|
||||||
if [ "$(expr match "$OPTS" '.*\(-DKICAD_SCRIPTING=ON\)')" == "-DKICAD_SCRIPTING=ON" ]; then
|
|
||||||
#echo "KICAD_SCRIPTING=ON"
|
|
||||||
scripting_prerequisites="
|
|
||||||
python-dev
|
|
||||||
python-wxgtk3.0-dev
|
|
||||||
swig
|
|
||||||
"
|
|
||||||
|
|
||||||
for sp in ${scripting_prerequisites}
|
|
||||||
do
|
|
||||||
sudo apt-get install $sp || exit 1
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# assume all yum systems have same prerequisites
|
|
||||||
elif [ "$(expr match "$PM" '.*\(yum\)')" == "yum" ]; then
|
|
||||||
#echo "red hat compatible system"
|
|
||||||
# Note: if you find this list not to be accurate, please submit a patch:
|
|
||||||
sudo yum groupinstall "Development Tools" || exit 1
|
|
||||||
|
|
||||||
prerequisite_list="
|
|
||||||
bzr
|
|
||||||
bzrtools
|
|
||||||
bzip2-libs
|
|
||||||
bzip2-devel
|
|
||||||
cmake
|
|
||||||
cmake-gui
|
|
||||||
doxygen
|
|
||||||
cairo-devel
|
|
||||||
glew-devel
|
|
||||||
glm
|
|
||||||
grep
|
|
||||||
openssl-devel
|
|
||||||
wxGTK3-devel
|
|
||||||
"
|
|
||||||
|
|
||||||
for p in ${prerequisite_list}
|
|
||||||
do
|
|
||||||
sudo yum install $p || exit 1
|
|
||||||
done
|
|
||||||
|
|
||||||
echo "Checking wxGTK version. Maybe you have to symlink /usr/bin/wx-config-3.0 to /usr/bin/wx-config"
|
|
||||||
V=`wx-config --version | cut -f 1 -d '.'` || echo "Error running wx-config."
|
|
||||||
if [ $V -lt 3 ]
|
|
||||||
then
|
|
||||||
echo "Error: wx-config is reporting version prior to 3"
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
echo "All ok"
|
|
||||||
fi
|
|
||||||
# Only install the scripting prerequisites if required.
|
|
||||||
if [ "$(expr match "$OPTS" '.*\(-DKICAD_SCRIPTING=ON\)')" == "-DKICAD_SCRIPTING=ON" ]; then
|
|
||||||
#echo "KICAD_SCRIPTING=ON"
|
|
||||||
scripting_prerequisites="
|
|
||||||
swig
|
|
||||||
wxPython
|
|
||||||
"
|
|
||||||
|
|
||||||
for sp in ${scripting_prerequisites}
|
|
||||||
do
|
|
||||||
sudo yum install $sp || exit 1
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo
|
|
||||||
echo "Incompatible System. Neither 'yum' nor 'apt-get' found. Not possible to continue."
|
|
||||||
echo
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ensure bzr name and email are set. No message since bzr prints an excellent diagnostic.
|
|
||||||
bzr whoami || {
|
|
||||||
echo "WARNING: You have not set bzr whoami, so I will set a dummy."
|
|
||||||
export BZR_EMAIL="Kicad Build <nobody@foo>"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
rm_build_dir()
|
|
||||||
{
|
|
||||||
local dir="$1"
|
|
||||||
|
|
||||||
echo "removing directory $dir"
|
|
||||||
|
|
||||||
if [ -e "$dir/install_manifest.txt" ]; then
|
|
||||||
# this file is often created as root, so remove as root
|
|
||||||
sudo rm "$dir/install_manifest.txt" 2> /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "$dir" ]; then
|
|
||||||
rm -rf "$dir"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cmake_uninstall()
|
|
||||||
{
|
|
||||||
# assume caller set the CWD, and is only telling us about it in $1
|
|
||||||
local dir="$1"
|
|
||||||
|
|
||||||
cwd=`pwd`
|
|
||||||
if [ "$cwd" != "$dir" ]; then
|
|
||||||
echo "missing dir $dir"
|
|
||||||
elif [ ! -e install_manifest.txt ]; then
|
|
||||||
echo
|
|
||||||
echo "Missing file $dir/install_manifest.txt."
|
|
||||||
else
|
|
||||||
echo "uninstalling from $dir"
|
|
||||||
sudo make uninstall
|
|
||||||
sudo rm install_manifest.txt
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
# Function set_env_var
|
|
||||||
# sets an environment variable globally.
|
|
||||||
set_env_var()
|
|
||||||
{
|
|
||||||
local var=$1
|
|
||||||
local val=$2
|
|
||||||
|
|
||||||
if [ -d /etc/profile.d ]; then
|
|
||||||
if [ ! -e /etc/profile.d/kicad.sh ] || ! grep "$var" /etc/profile.d/kicad.sh >> /dev/null; then
|
|
||||||
echo
|
|
||||||
echo "Adding environment variable $var to file /etc/profile.d/kicad.sh"
|
|
||||||
echo "Please logout and back in after this script completes for environment"
|
|
||||||
echo "variable to get set into environment."
|
|
||||||
sudo sh -c "echo export $var=$val >> /etc/profile.d/kicad.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
elif [ -e /etc/environment ]; then
|
|
||||||
if ! grep "$var" /etc/environment >> /dev/null; then
|
|
||||||
echo
|
|
||||||
echo "Adding environment variable $var to file /etc/environment"
|
|
||||||
echo "Please reboot after this script completes for environment variable to get set into environment."
|
|
||||||
sudo sh -c "echo $var=$val >> /etc/environment"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
install_or_update()
|
|
||||||
{
|
|
||||||
echo "step 1) installing pre-requisites"
|
|
||||||
install_prerequisites
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 2) make $WORKING_TREES if it does not exist"
|
|
||||||
if [ ! -d "$WORKING_TREES" ]; then
|
|
||||||
sudo mkdir -p "$WORKING_TREES"
|
|
||||||
echo " mark $WORKING_TREES as owned by me"
|
|
||||||
sudo chown -R `whoami` "$WORKING_TREES"
|
|
||||||
fi
|
|
||||||
cd $WORKING_TREES
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 3) checking out the source code from launchpad repo..."
|
|
||||||
if [ ! -d "$WORKING_TREES/kicad.bzr" ]; then
|
|
||||||
bzr checkout -r $REVISION $SRCS_REPO kicad.bzr
|
|
||||||
echo " source repo to local working tree."
|
|
||||||
else
|
|
||||||
cd kicad.bzr
|
|
||||||
bzr up -r $REVISION
|
|
||||||
echo " local source working tree updated."
|
|
||||||
cd ../
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "step 4) checking out the schematic parts and 3D library repo."
|
|
||||||
if [ ! -d "$WORKING_TREES/kicad-lib.bzr" ]; then
|
|
||||||
bzr checkout $LIBS_REPO kicad-lib.bzr
|
|
||||||
echo ' kicad-lib checked out.'
|
|
||||||
else
|
|
||||||
cd kicad-lib.bzr
|
|
||||||
bzr up
|
|
||||||
echo ' kicad-lib repo updated.'
|
|
||||||
cd ../
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "step 5) checking out the documentation from launchpad repo..."
|
|
||||||
if [ ! -d "$WORKING_TREES/kicad-doc.bzr" ]; then
|
|
||||||
bzr checkout $DOCS_REPO kicad-doc.bzr
|
|
||||||
echo " docs checked out."
|
|
||||||
else
|
|
||||||
cd kicad-doc.bzr
|
|
||||||
bzr up
|
|
||||||
echo " docs working tree updated."
|
|
||||||
cd ../
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 6) compiling source code..."
|
|
||||||
cd kicad.bzr
|
|
||||||
if [ ! -d "build" ]; then
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake $OPTS ../ || exit 1
|
|
||||||
else
|
|
||||||
cd build
|
|
||||||
# Although a "make clean" is sometimes needed, more often than not it slows down the update
|
|
||||||
# more than it is worth. Do it manually if you need to in this directory.
|
|
||||||
# make clean
|
|
||||||
fi
|
|
||||||
make -j4 || exit 1
|
|
||||||
echo " kicad compiled."
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 7) installing KiCad program files..."
|
|
||||||
sudo make install
|
|
||||||
echo " kicad program files installed."
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 8) installing libraries..."
|
|
||||||
cd ../../kicad-lib.bzr
|
|
||||||
rm_build_dir build
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake ../
|
|
||||||
sudo make install
|
|
||||||
echo " kicad-lib.bzr installed."
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 9) as non-root, install global fp-lib-table if none already installed..."
|
|
||||||
# install ~/fp-lib-table
|
|
||||||
if [ ! -e ~/fp-lib-table ]; then
|
|
||||||
make install_github_fp-lib-table
|
|
||||||
echo " global fp-lib-table installed."
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
echo "step 10) installing documentation..."
|
|
||||||
cd ../../kicad-doc.bzr
|
|
||||||
rm_build_dir build
|
|
||||||
mkdir build && cd build
|
|
||||||
cmake ../
|
|
||||||
sudo make install
|
|
||||||
echo " kicad-doc.bzr installed."
|
|
||||||
|
|
||||||
echo "step 11) check for environment variables..."
|
|
||||||
if [ -z "${KIGITHUB}" ]; then
|
|
||||||
set_env_var KIGITHUB https://github.com/KiCad
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
|
||||||
echo 'All KiCad "--install-or-update" steps completed, you are up to date.'
|
|
||||||
echo
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 -a "$1" == "--remove-sources" ]; then
|
|
||||||
echo "deleting $WORKING_TREES"
|
|
||||||
rm_build_dir "$WORKING_TREES/kicad.bzr/build"
|
|
||||||
rm_build_dir "$WORKING_TREES/kicad-lib.bzr/build"
|
|
||||||
rm_build_dir "$WORKING_TREES/kicad-doc.bzr/build"
|
|
||||||
rm -rf "$WORKING_TREES"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 -a "$1" == "--install-or-update" ]; then
|
|
||||||
install_or_update
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 -a "$1" == "--uninstall-libraries" ]; then
|
|
||||||
cd "$WORKING_TREES/kicad-lib.bzr/build"
|
|
||||||
cmake_uninstall "$WORKING_TREES/kicad-lib.bzr/build"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
if [ $# -eq 1 -a "$1" == "--uninstall-kicad" ]; then
|
|
||||||
cd "$WORKING_TREES/kicad.bzr/build"
|
|
||||||
cmake_uninstall "$WORKING_TREES/kicad.bzr/build"
|
|
||||||
|
|
||||||
cd "$WORKING_TREES/kicad-lib.bzr/build"
|
|
||||||
cmake_uninstall "$WORKING_TREES/kicad-lib.bzr/build"
|
|
||||||
|
|
||||||
# this may fail since "uninstall" support is a recent feature of this repo:
|
|
||||||
cd "$WORKING_TREES/kicad-doc.bzr/build"
|
|
||||||
cmake_uninstall "$WORKING_TREES/kicad-doc.bzr/build"
|
|
||||||
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
usage
|
|
Loading…
Reference in New Issue