Index: trunk/doc/developer/packaging/Changelog
===================================================================
--- trunk/doc/developer/packaging/Changelog (nonexistent)
+++ trunk/doc/developer/packaging/Changelog (revision 535)
@@ -0,0 +1,17 @@
+How to get a release candidate tarball in /tmp:
+
+ ver=0.9.3
+ cd /tmp
+ svn export svn://repo.hu/camv-rnd/trunk camv-rnd-$ver
+ tar -cf vamv-rnd-$ver.tar camv-rnd-$ver
+
+Packaging changes between 0.9.3 and 0.9.2
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+No change in packaging.
+
+
+Packaging changes between 0.9.2 and 0.9.1
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+
+Initial packaging.
+
Index: trunk/doc/developer/packaging/desc
===================================================================
--- trunk/doc/developer/packaging/desc (nonexistent)
+++ trunk/doc/developer/packaging/desc (revision 535)
@@ -0,0 +1,42 @@
+@camv-rnd
+ Standard installation of camv-rnd
+
+ Install camv-rnd core and the most commonly used plugins.
+
+@camv-rnd-doc
+ Documentation for camv-rnd
+
+ User manual and developer doc (html).
+
+@camv-rnd-core
+ camv-rnd executable with the core functionality and boxsym-rnd
+
+ Includes the data model, the most common action commands, the native file
+ format. Can be used in headless mode or batch/scripted mode for automated
+ processing or with GUI (if camv-rnd-lib-gui and librnd GUI HIDs are installed).
+
+@camv-rnd-debug
+ Debug and diagnostics.
+
+ Extra action commands to help in debugging and diagnosing problems and bugs.
+
+@camv-rnd-export-extra
+ Export formats: special/extra
+
+ Less commonly used export formats: abstract model text export,
+ direct printing with lpr.
+
+@camv-rnd-export-vector
+ Export formats: vector graphics
+
+ Common vector graphic export formats: ps, eps, svg.
+
+@camv-rnd-export-gd
+ Export formats that require libgd.
+
+ Bitmap export plugin (png, jpeg, etc.)
+
+@camv-rnd-lib-gui
+ Support library for building the GUI.
+
+ Provides camv-rnd specific dialog boxes and top window GUI elements.
Index: trunk/doc/developer/packaging/description.txt
===================================================================
--- trunk/doc/developer/packaging/description.txt (nonexistent)
+++ trunk/doc/developer/packaging/description.txt (revision 535)
@@ -0,0 +1,3 @@
+camv-rnd is a modular EDA (mainly PCB) CAM file format viewer that supports
+gerber, excellon and g-code. The GUI features zoom, pan and measurements on
+multiple layers from multiple files.
Index: trunk/doc/developer/packaging/librnd_root.mk
===================================================================
--- trunk/doc/developer/packaging/librnd_root.mk (nonexistent)
+++ trunk/doc/developer/packaging/librnd_root.mk (revision 535)
@@ -0,0 +1,4 @@
+include ../../../Makefile.conf
+
+all:
+ @echo $(LIBRND_PREFIX)
Index: trunk/doc/developer/packaging/packages.sh
===================================================================
--- trunk/doc/developer/packaging/packages.sh (nonexistent)
+++ trunk/doc/developer/packaging/packages.sh (revision 535)
@@ -0,0 +1,396 @@
+#!/bin/sh
+ROOT=../../..
+proot=$ROOT/src/plugins
+
+# Get librnd requirement from INSTALL so it doesn't need to be maintained
+# multiple locations
+librnd_min_ver()
+{
+ awk -v "which=$1" '
+ /librnd >=/ {
+ ver=$0
+ sub("^.*>=[ \t]*", "", ver)
+ sub("[ \t].*$", "", ver)
+ split(ver, V, "[.]")
+ if (which == "major")
+ print V[1]
+ else if (which == "minor")
+ print V[2]
+ else if (which == "patch")
+ print V[3]
+ else
+ print ver
+ }
+ ' < $ROOT/INSTALL
+}
+
+
+# major version of librnd
+RNDV=`librnd_min_ver major`
+RNDVER=`librnd_min_ver`
+
+if test -f $ROOT/Makefile.conf
+then
+ LIBRND_ROOT=`make -f librnd_root.mk`
+fi
+
+if test -z "$LIBRND_ROOT"
+then
+ if test -f /usr/local/share/librnd${RNDV}/librnd_packages.sh
+ then
+ LIBRND_ROOT=/usr/local
+ else
+ LIBRND_ROOT=/usr
+ fi
+fi
+
+if test -f $LIBRND_ROOT/share/librnd${RNDV}/librnd_packages.sh
+then
+ . $LIBRND_ROOT/share/librnd${RNDV}/librnd_packages.sh
+else
+ echo "librnd installation not found - try to configure this checkout first or install librnd in /usr or /usr/local" >&2
+ exit 1
+fi
+
+### generate description.txt (file formats) ###
+
+echo "$RNDV" > auto/ver_librnd_major
+
+. $ROOT/util/devhelpers/awk_on_formats.sh
+
+awk_on_formats '
+{ print $0 }
+
+function out(dir, type ,n,v,A,tmp)
+{
+ v = split(FMTS[dir, type], A, " *
*")
+ if (v < 1) return
+ print " -", dir, type ":"
+ for(n = 1; n <= v; n++) {
+ tmp = A[n]
+ sub("^ *", "", tmp)
+ print " * " tmp
+ }
+}
+
+/(lihata)/ {
+ t = split(types, T, " ")
+ for(n = 1; n <= t; n++) {
+ out("import", T[n]);
+ out("export", T[n]);
+ }
+ exit
+}
+' < description.txt > description2.txt && mv description2.txt description.txt
+
+### generate packages.html and auto/ ###
+
+# TODO: io-standard
+meta_deps="core io-alien lib-gui librnd${RNDV}-hid-gtk2-gl librnd${RNDV}-hid-gtk2-gdk export-extra doc"
+
+(echo '
+
+
" + print "
package | depends on (packages) | consists of (plugins)" + + for(pkg in PKG) { + if (pkg == "sch-rnd-core") + print " |
---|---|---|
" pkg " | " fix_deps(PKG_DEP[pkg]) " | (builtin: " PKG[pkg] ")" + else + print " |
" pkg " | " fix_deps(PKG_DEP[pkg]) " | " PKG[pkg] + print strip(PKG_DEP[pkg]) > "auto/" pkg ".deps" + print pkg > "auto/List" + } + print " |
package | files | short | long" + for(pkg in PKG) { + if (SHORT[pkg] == "") SHORT[pkg] = " " + if (LONG[pkg] == "") LONG[pkg] = " " + print " |
---|---|---|---|
" pkg " | " IFILES[pkg] " " CONFFILE[pkg] "" " | " SHORT[pkg] " | " LONG[pkg] + print strip(IFILES[pkg] " " CONFFILE[pkg]) > "auto/" pkg ".files" + print strip(SHORT[pkg]) > "auto/" pkg ".short" + print strip(LONG[pkg]) > "auto/" pkg ".long" + } + print " |
Note: package names differ from distro to distro, this table only approximates the packahge names external dependencies have on your target." + print "
Note: every package that has .so files in it depends on librnd." + print "
" + print "
package | extneral dependencies" + for(plg in PLUGIN) + EXTDEPS[PLUGIN[plg]] = EXTDEPS[PLUGIN[plg]] " " PUPEXTDEPS[plg] + for(pkg in PKG) + print " |
---|---|
" pkg " | " uniq(EXTDEPS[pkg]) + print " |
File prefixes: