kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #03050
build version in packagesrc.sh
--=-WOKdu6UFxwjICHgWytnO Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hi everyone,
recently I ran into some issues with the packagesrc.sh provided by the
kicad svn repository. Since I'm packaging my own kicad debian packages
(src & binary through ubuntu's ppa build service) I wanted to include
the svn revision and the date in the about boxes. At the first glance
packagesrc.sh seems to do that job. However I ran into a problem:
The script _creates_ kicad/include/config.h which defines
KICAD_ABOUT_VERSION. Well, the problem is that cmake also generates a
config.h with configuration related defines. A simple #include
"config.h" will now include the wrong header and break the build.
Fix: Replace the entire "cat << EOF ........ EOF" with:
sed -i "s/#define BUILD_VERSION.*/#define BUILD_VERSION \"r${svnrev}
(${svndate})\"/" kicad/common/about_kicad.cpp
This will substitute the fallback definition in case the svn revision
couldn't be detected by cmake.
Cheers,
-Philip
--=20
Dipl.-Ing. Philip Axer=20
Institut f=C3=BCr Datentechnik und Kommunikationsnetze=20
Hans-Sommer-Stra=C3=9Fe 66 38106 Braunschweig=20
Tel +49 (531) 391 9662 Fax +49 (531) 391 3750=20
--=-WOKdu6UFxwjICHgWytnO Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64
[Attachment content not displayed.] --=-WOKdu6UFxwjICHgWytnO--