From 184a9322b8300ba5e573fe4390874d01ce7091a6 Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 25 May 2015 19:53:35 -0400 Subject: [PATCH] update doc and add release scripts --- documentation/Doxyfile | 2 +- documentation/mainpage.h | 4 ++-- scripts/maketar.sh | 6 ++++++ scripts/pushdoc.sh | 15 +++++++++++++++ scripts/uploadtar.sh | 15 +++++++++++++++ 5 files changed, 39 insertions(+), 3 deletions(-) create mode 100755 scripts/maketar.sh create mode 100755 scripts/pushdoc.sh create mode 100755 scripts/uploadtar.sh diff --git a/documentation/Doxyfile b/documentation/Doxyfile index 847cdef..d80fc51 100644 --- a/documentation/Doxyfile +++ b/documentation/Doxyfile @@ -31,7 +31,7 @@ PROJECT_NAME = devLib2 # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 2.5 +PROJECT_NUMBER = 2.6 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. diff --git a/documentation/mainpage.h b/documentation/mainpage.h index 27fe1e5..78fbeab 100644 --- a/documentation/mainpage.h +++ b/documentation/mainpage.h @@ -201,10 +201,10 @@ this is the only piece of information required to access the card. Below is an example implementation of myPCICardSetup(). @code -static const struct VMECSRID mydevids[] = {...} +static const epicsPCIID mydevids[] = {...} int -myVMECardSetup(const char* port, +myPCICardSetup(const char* port, int b, int d, int f) diff --git a/scripts/maketar.sh b/scripts/maketar.sh new file mode 100755 index 0000000..579b800 --- /dev/null +++ b/scripts/maketar.sh @@ -0,0 +1,6 @@ +#!/bin/sh +set -e + +TAG=$1 + +exec git archive --prefix=devlib2-${1}/ --format tar.gz -9 -o devlib2-${1}.tar.gz ${1} diff --git a/scripts/pushdoc.sh b/scripts/pushdoc.sh new file mode 100755 index 0000000..e27fc20 --- /dev/null +++ b/scripts/pushdoc.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +die() { + echo "$1" + exit 1 +} + +[ "$USER" ] || die "USER not set" + +[ -f documentation/mainpage.h ] || die "Run me in the top level" + +(cd documentation && doxygen) + +rsync -av --delete "$@" documentation/doc/html/ $USER,epics@frs.sourceforge.net:/home/project-web/epics/htdocs/devlib2/ diff --git a/scripts/uploadtar.sh b/scripts/uploadtar.sh new file mode 100755 index 0000000..d882030 --- /dev/null +++ b/scripts/uploadtar.sh @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +die() { + echo "$1" + exit 1 +} + +[ -f "$1" ] || die "usage $0 " + +[ "$USER" ] || die "USER not set" + +[ -f documentation/mainpage.h ] || die "Run me in the top level" + +scp "$1" $USER,epics@frs.sourceforge.net:/home/frs/project/epics/devlib2/