Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
nodejs-confluence-space-exporter
confluence-space-exporter.script
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File confluence-space-exporter.script of Package nodejs-confluence-space-exporter
#!/bin/bash ENVVAR='/etc/confluence-space-exporter.envvar' usage(){ echo "Usage: $(basename $0) -e <envvar-file> -k [key] -t [type]" echo echo " -e, --envvar File containing your configuration." echo " Default: $ENVVAR" echo " -k, --key Confluence space key" echo " -t, --type Export file type: xml, html or pdf" echo " --version Print version" echo echo "For more details, please read:" echo " /usr/share/doc/packages/nodejs-confluence-space-exporter/README.md" echo exit $1 } TEMP=$(getopt -o e:k:t:vh -l envvar:,key:,type:,version,help -- "$@") eval set -- "$TEMP" if [ $? != 0 ]; then usage fi while true; do case "$1" in -e | --envvar) ENVVAR="$2" shift 2 ;; -h | --help) usage 0 ;; -k | --key) KEY="$2" shift 2 ;; -t | --type) TYPE="$2" shift 2 ;; -v | --version) rpm -q --qf "Version: %{VERSION}\n" nodejs-confluence-space-exporter exit 0 ;; -- ) shift; break ;; * ) break ;; esac done echo "ENVVAR: $ENVVAR; KEY: $KEY; TYPE:$TYPE" ERRMSG='' if [ ! -r "$ENVVAR" ]; then ERRMSG="Could not read $ENVVAR" fi if [ -z "$KEY" ]; then ERRMSG="-k | --key not defined" fi if [ -z "$TYPE" ]; then ERRMSG="-t | --type not defined" fi if [ x"$ERRMSG" != x"" ]; then echo echo "$ERRMSG" >&2 echo usage 1 fi source "$ENVVAR" __MODULEPATH__/cse.js -k "$KEY" -t "$TYPE"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor