Artifact Content
Not logged in

Artifact 0d05147f510bdd5de2c1919fa039b675972e107c:


#!/usr/bin/env bash
# Initial author: martin.vahi@softf1.com
# This file is in public domain.
# For  further information please see
#
#     http://www.silktorrent.ch 
#
#=========================================================================
S_FP_ORIG="`pwd`"
#-------------------------------------------------------------------------

func_mmmv_exit_if_not_on_path_t2() { # S_COMMAND_NAME
    local S_COMMAND_NAME=$1
    local S_LOCAL_VARIABLE="`which $S_COMMAND_NAME 2>/dev/null`"
    if [ "$S_LOCAL_VARIABLE" == "" ]; then
        echo ""
        echo "Command \"$S_COMMAND_NAME\" could not be found from the PATH. "
        echo "The Fossil source code might be available from a link at "
        echo "http://www.softf1.com/cgi-bin/tree1/technology/flaws/silktorrent.bash/wiki?name=Fossil+Repository+Related+Links+and+Comments"
        echo ""
        echo "The execution of the Bash script is aborted."
        echo "GUID=='3f7ad84e-e0f2-45c8-94e7-217051d1a0e7'"
        echo ""
        #--------
        cd $S_FP_ORIG
        exit 1; # exit with an error
    fi
} # func_mmmv_exit_if_not_on_path_t2

func_mmmv_exit_if_not_on_path_t2 "fossil"

#-------------------------------------------------------------------------

    mkdir ./stuff
    cd ./stuff
    wget http://www.softf1.com/cgi-bin/tree1/technology/flaws/silktorrent.bash/raw/work_in_progress/mmmv_Fossil_operator_t1.bash?name=ebb536fdad89b21bd6180652275b3571b3ab4cef --output-document=`pwd`/mmmv_Fossil_operator_t1.bash
    echo ""
    echo "Now it will probably take a while, because it needs to dowload ~500MiB of files."
    echo ""
    bash ./mmmv_Fossil_operator_t1.bash clone_public http://www.softf1.com/cgi-bin/tree1/technology/flaws/silktorrent.bash/
    fossil ui `pwd`/repository_storage.fossil # Runs a Fossil web server at localhost
                                              # and opens the default web browser.

#-------------------------------------------------------------------------
cd $S_FP_ORIG
#=========================================================================