Skip to content
Snippets Groups Projects
Commit 4fc6baf1 authored by alvaro's avatar alvaro
Browse files

Added version to utils/lodspk.sh

parent 93869451
No related branches found
No related tags found
No related merge requests found
lodspeakr - Linked Open Data Simple Publishing Kit
author: Alvaro Graves (alvaro@graves.cl)
version: 20120315
version: 20120316
Simplest Installation
---------------------
......
......@@ -9,6 +9,7 @@ USAGE=$USAGE" Switch to standard view/models temporaly:\t\t$0 disable on|off\n"
USAGE=$USAGE" Backup current installation:\t\t\t\t$0 backup\n"
USAGE=$USAGE" Restore previous installation:\t\t\t\t$0 restore\n"
USAGE=$USAGE" Clear cache:\t\t\t\t\t\t$0 cache clear\n"
USAGE=$USAGE" Version:\t\t\t\t\t\t$0 version\n"
USAGEDEBUG="Usage: $0 debug on|off"
if [[ $# -eq 0 || "$1" == "--help" ]]; then
echo -e $USAGE
......@@ -16,7 +17,7 @@ if [[ $# -eq 0 || "$1" == "--help" ]]; then
fi
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
operations=( create delete debug backup restore disable cache )
operations=( create delete debug backup restore disable cache version )
currentOperation=
if [[ ${operations[@]} =~ $1 ]]; then
......@@ -119,3 +120,8 @@ if [[ $currentOperation == "cache" ]]; then
$DIR/modules/cache.sh $2
exit
fi
## Version
if [[ $currentOperation == "version" ]]; then
$DIR/modules/version.sh
fi
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
FILE=README
cd $DIR/../..
grep -E "^version" $FILE |head -1 |sed -e 's/version: //'
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