Skip to content
Snippets Groups Projects
Commit cd786545 authored by cramakri's avatar cramakri
Browse files

MINOR : Added script to list references to java doc in the release documentation space

SVN: 28771
parent 10c7225d
No related branches found
No related tags found
No related merge requests found
#! /bin/bash
# 2013, Chandrasekhar Ramakrishnan
SCRIPT="$0"
BINDIR="${SCRIPT%/*}"
LINK="`readlink $0`"
while [ -n "${LINK}" ]; do
if [ "${LINK#/}" = "${LINK}" ]; then
SCRIPT="${BINDIR}/${LINK}"
else
SCRIPT="${LINK}"
fi
LINK="`readlink ${SCRIPT}`"
done
#CONFLUENCE_CLI_ROOT="`dirname ${SCRIPT}`"
CONFLUENCE_CLI_ROOT="/usr/local/cisd/confluence_cli"
OPENBIS_PAGE=openBIS
SNAPSHOT_SPACE=openBISDoc1304
source ${CONFLUENCE_CLI_ROOT}/wiki.conf
PAGE="$1"
${CONFLUENCE_CLI_ROOT}/confluence --server https://wiki-bsse.ethz.ch --user ${USER} --password ${PASSWD} --space ${SNAPSHOT_SPACE} --title "${PAGE}" --action getPageSource
#! /bin/bash
# 2013, Chandrasekhar Ramakrishnan
SCRIPT="$0"
BINDIR="${SCRIPT%/*}"
LINK="`readlink $0`"
while [ -n "${LINK}" ]; do
if [ "${LINK#/}" = "${LINK}" ]; then
SCRIPT="${BINDIR}/${LINK}"
else
SCRIPT="${LINK}"
fi
LINK="`readlink ${SCRIPT}`"
done
#CONFLUENCE_CLI_ROOT="`dirname ${SCRIPT}`"
CONFLUENCE_CLI_ROOT="/usr/local/cisd/confluence_cli"
OPENBIS_PAGE=openBIS
SNAPSHOT_SPACE=openBISDoc1304
source ${CONFLUENCE_CLI_ROOT}/wiki.conf
# List children of the openBIS documentation
${CONFLUENCE_CLI_ROOT}/confluence --server https://wiki-bsse.ethz.ch --user ${USER} --password ${PASSWD} --space ${SNAPSHOT_SPACE} --title ${OPENBIS_PAGE} --descendents --action getPageList
#${CONFLUENCE_CLI_ROOT}/confluence --server https://wiki-bsse.ethz.ch --user ${USER} --password ${PASSWD} --space ${SNAPSHOT_SPACE} --title ${OPENBIS_PAGE} --action getPageSource
#!/usr/bin/env ruby
# List children of the openBIS documentation
pages = `./listPagesInReleaseDocumentation`
doc_url = 'http://svncisd.ethz.ch/doc/openbis/current/'
count = -1
pages.each_line do | page |
count = count + 1
# skip the first one
next if count < 1
source = `./getSourceForReleasePage "#{page.chomp}"`
puts page if source.include?(doc_url)
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment