From 31b20f08150907fadc05e5054f4ffd04f68d2144 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Wed, 16 Mar 2011 14:02:43 +0100 Subject: Add publishing script and propagate version from top directory --- doc/CMakeLists.txt | 1 + doc/publish.sh.in | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 doc/publish.sh.in (limited to 'doc') diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 6f9f078..ff2030a 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -5,6 +5,7 @@ find_package(Doxygen) # --- Create Doxygen source documentation by typing `make doc` if(DOXYGEN_FOUND) configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/publish.sh.in ${CMAKE_CURRENT_BINARY_DIR}/publish.sh) # add 'ALL after 'doc' to create documentation, whenever you type make add_custom_target(doc diff --git a/doc/publish.sh.in b/doc/publish.sh.in new file mode 100644 index 0000000..6ae3733 --- /dev/null +++ b/doc/publish.sh.in @@ -0,0 +1,8 @@ +#!/bin/sh + +echo -n "user: " +read -e USER +echo -n "host (:~/public_html is appended): " +read -e HOST + +scp -r html/ $USER@$HOST:~/public_html/libuca-${UCA_VERSION_MAJOR}.${UCA_VERSION_MINOR}.${UCA_VERSION_PATCH} -- cgit v1.2.3