1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/tools/villas.sh
Steffen Vogel dbc1530727 Overhaul of build and packaging system:
- Build RPM packages for VILLASnode and dependencies with the ‚rpm‘, ‚rpm-villas‘, ‚rpm-livxil‘ and ‚rpm-libwebsockets‘ make targets
- Upload new RPM packages to the repository with the ‚deploy‘ make target
- Build a developer Docker image with the `docker-dev` target
- Run the developer image with the `run-docker-dev` target
- Build a production Docker image with the `docker` target
  This requires that all RPM packages have been build previously!
- Use hard-coded default paths where applicable
- Updated index website
- Added some usage information and hints

Documentation of the new system is still outstanding
2017-03-29 04:04:20 +02:00

38 lines
No EOL
1.1 KiB
Bash
Executable file

#!/bin/bash
# Wrapper to start tool of the VILLASnode suite
#
# This allows you to use VILLASnode tools like this:
# $ villas node /etc/villas/test.cfg
#
# Install by:
# $ make install
#
# @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
# @copyright 2016, Institute for Automation of Complex Power Systems, EONERC
###################################################################################
PREFIX=villas
# Get a list of all available tools
TOOLS=$(compgen -c | egrep "^$PREFIX-" | sort -u | cut -d- -f2- | paste -sd'|')
# First argument to wrapper is the tool which should be started
TOOL=$1
# Following arguments will be passed directly to tool
ARGS=${@:2}
# Check if tool is available
if ! [[ "$TOOL" =~ $(echo ^\($TOOLS\)$) ]]; then
echo "Usage: villas [TOOL]" 1>&2
echo " TOOL is one of ${TOOLS}"
echo
echo "For detailed documentation, please run 'villas node'"
echo " and point your web browser to http://localhost:80"
echo
# Show VILLASnode copyright and contact info
villas-node --help | tail -n3
exit 1
fi
exec $PREFIX-$TOOL $ARGS