Right now I wrap my Linux-based build process with a script that
features the line
REVISION=`svn info ${SRC_PATH} | awk '/^Revision/ { print $2 }'`
Which is neither OS or VCS portable.
I'm trying to put together a CPack configuration to make the builds, and
I'd like to name the resulting installer for the revision it was built from.
Is there any kind of built-in mechanism I can use for this, or would I
be best just using IFs and executing os-specific commands? (I'm not
quite sure how I'm going to pluck the info out under Windows)
I'm also wondering if there is a way to query other repository
attributes - specifically the URL - I'd like to build installers named
<product>.<branch>.<revision>.<suffix>
e.g.
my-client.baseline.57721.deb
or
my-server.branches.1.35.57804.tbz2
Any pointers?
- Oliver
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake