All shellcheck warnings corrected

All shellcheck warnings corrected

#!/bin/bash

incomingdir=/cygdrive/D/Illumina/MiSeqOutput
incomingdir=/Users/ozagordi/openBIS
bufferdir=/cygdrive/D/BufferDir
bufferdir=/tmp/parse_samples/

# define these globally so no need to pass it as a function parameter
headers='undefined'
rundir='undefined'
IEMFileVersion='undefined'
Investigator_Name='undefined'
Experiment_Name='undefined'
#Date='undefined'
Workflow='undefined'
Application='undefined'
Assay='undefined'
#Description='undefined'
Chemistry='undefined'
Read1='undefined'
Read2='undefined'
PhiX='undefined'
RGT_Box_1='undefined'
RGT_Box_2='undefined'
openbis='n'

# global variable to allow a function return it
ismolis='undefined'

test_molis(){
    if [[ $1 =~ ^100[0-9]{7} ]]; then
        ismolis=true
        return
    else
        ismolis=false
        return
    fi
}

write_miseq_run(){
    # input: run_name space
    # space is Diagnostics or Research
    runname=$1
    dest=$bufferdir/$runname
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"
    prop_file=${dest}/dataset.properties

    datenum=${runname:0:6}
    YYYY=20${datenum:0:2}
    MM=${datenum:2:2}
    DD=${datenum:4:2}

    ### sample_type MISEQ_RUN

    {
    printf "space=%s\n" "$2"
    printf "IEMFileVersion=%s\n" "$IEMFileVersion"
    printf "investigator_name=%s\n" "$Investigator_Name"
    printf "experiment_name=%s\n" "$Experiment_Name"
    printf "date=%s-%s-%s\n" "${YYYY}" "${MM}" "${DD}"
    printf "miseq_workflow=%s\n" "$Workflow"
    printf "Application=%s\n" "$Application"
    printf "Assay=%s\n" "$Assay"
    printf "Chemistry=%s\n" "$Chemistry"
    printf "Read1=%s\n" "$Read1"
    printf "Read2=%s\n" "$Read2"
    printf "PhiX=%s\n" "$PhiX"
    printf "RGT_Box_1=%s\n" "$RGT_Box_1"
    printf "RGT_Box_2=%s\n" "$RGT_Box_2"
    } > "$prop_file"
}

write_miseq_sample(){
    # input is a line in section [Data] of the samples sheet
    # copy fastq file into $bufferdir/$rundir/S.../ and write dataset.properties

    declare -a sample_line=("${!1}")

    #echo "    " "${sample_line[@]}"

    ### move fastq file into folder

    sample_number=${sample_line[0]}
    sample_name=${sample_line[1]}
    sample_plate=${sample_line[2]}
    sample_well=${sample_line[3]}
    I7_index_id=${sample_line[4]}
    index_1=${sample_line[5]}
    I5_index_id=${sample_line[6]}
    index_2=${sample_line[7]}
    description=${sample_line[9]}

    run_name=$(basename "$rundir")
    ### create folder S.. in $dest
    dest=$bufferdir/${run_name}_S${sample_number}
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"

    fastq_file=$run_name/${sample_name}_S${sample_number}_L001_R1_001.fastq.gz
    if [ -e "$fastq_file" ]; then
        mv "$fastq_file" "$dest/"
    fi

    ### write properties file
    prop_file=${dest}/dataset.properties

    ### space and project

    # space is Diagnostics if sample_name is a MOLIS number
    test_molis "$sample_name"
    if [[ "$ismolis" = true ]];then
        Space='Diagnostics'
    else
        Space='Research'
    fi
    ismolis='undefined'

    # Project from Sample_Project column
    Project=${sample_line[8]}

    ### sample_type MISEQ_SAMPLE
    {
    printf "Space=%s\n" "$Space"
    printf "Project=%s\n" "$Project"
    printf "Sample_ID=%s\n" "${sample_number}"
    printf "Sample_Name=%s\n" "${sample_name}"
    printf "Sample_Plate=%s\n" "${sample_plate}"
    printf "Sample_Well=%s\n" "$sample_well"
    printf "I7_Index_ID=%s\n" "$I7_index_id"
    printf "INDEX_1=%s\n" "$index_1"
    printf "I5_Index_ID=%s\n" "$I5_index_id"
    printf "INDEX_2=%s\n" "$index_2"
    printf "DESCRIPTION=%s\n" "$description"
    } > "$prop_file"
}

write_resistance_test(){

    declare -a sample_line=("${!1}")

    sample_number=${sample_line[0]}
    sample_name=${sample_line[1]}
    #sample_project=${sample_line[8]}
    #Description=${sample_line[9]}
    virus=${sample_line[10]}
    genotype=${sample_line[11]}
    target=${sample_line[12]}
    viral_load=${sample_line[13]}

    run_name=$(basename "$rundir")
    ### create folder S.. in $dest
    dest=$bufferdir/RESTEST_${run_name}_S${sample_number}
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"

    ### write properties file
    prop_file=${dest}/dataset.properties
    touch "$prop_file"

    {
    printf "SAMPLE_NAME=%s\n" "$sample_name"
    printf "VIRUS=%s\n" "$virus"
    printf "TARGET_TYPE=%s\n" "$target"
    printf "GENOTYPE=%s\n" "$genotype"
    printf "VIRAL_LOAD=%s\n" "$viral_load"
    } > "$prop_file"

}

process_runs(){
    # read the samples sheet,
    # save info found in [Header] and [Reads] in global variables
    # call process_sample on all lines in [Data] section

    rundir=$1

    if [[ -e $rundir/.UPLOADED_RUN ]]; then
        echo "Run $rundir already uploaded"
        return
    fi

    # reset headers
    headers='undefined'

    ### remove spaces in sample sheet
    sed -e "s/ /_/g" < "$rundir/Data/Intensities/BaseCalls/SampleSheet.csv" > sample_sheet.tmp

    ### counters for read 1/2 and samples
    r=0
    s=0
    diag_sample=false
    res_sample=false
    ### read sample sheet line by line
    while IFS=',' read -r -a line
    do

        if [[ ${line[0]} =~ ^\[[[:alpha:]]*\] ]]
        then
            section=${line[0]}

        ### [Header] section
        elif [[ $section == "[Header]" && ${line[1]} ]]
        then
            declare "${line[0]}=${line[1]}"

        ### [Reads] section for read 1
        elif [[ $section == "[Reads]" && ${line[0]} =~ ^[0-9]+$ && $r -eq 0 ]]
        then
            # [Header] has now been parsed, if openbis != y then stop parsing
            # this run and go to next
            if [[ "$openbis" == "n" ]]; then
                break
            fi
            r=1
            # echo $section ${line[0]}
            Read1=${line[0]}

        ### [Reads] section for read 2
        elif [[ $section == "[Reads]" && ${line[0]} =~ ^[0-9]+$ && $r -eq 1 ]]
        then
            r=2
            # echo $section ${line[0]}
            Read2=${line[0]}

        ### [Data] section headers
        elif [[ $section == "[Data]" && ${line[1]} && $s -eq 0 ]]
        then
            headers=( "${line[@]}" )
            echo -e "  Headers found:" "${headers[@]}"
            ((s+=1))

        ### [Data] section values
        elif [[ $section == "[Data]" && ${line[1]} && $s -gt 0 ]]
        then
            # echo "Before: " "$ismolis"
            echo "    " "${line[@]}"
            test_molis "${line[1]}"
            if [ "$ismolis" = true ]; then
                diag_sample=true
            else
                res_sample=true
            fi
            #echo "After: " "$ismolis"
            ismolis='undefined'
            write_miseq_sample line[@]
            if [[ "${line[8]}" == "Resistance" ]]; then
                write_resistance_test line[@]
            fi
            ((s+=1))
        fi
    done < sample_sheet.tmp

    ### remove temporary file
    rm sample_sheet.tmp
    run_name=$(basename "$rundir")
    # if any sample was "diagnostics" then write diagnostic run
    if [ "$diag_sample" = true ]; then
        echo "WRITING DIAGNOSTICS"
        write_miseq_run "${run_name}_DIA" Diagnostics
    fi
    # if any sample was "research" then write research run
    if [ "$res_sample" = true ]; then
        echo "WRITING RESEARCH"
        write_miseq_run "${run_name}_RES" Research
    fi

    # reset [Header] and [Reads] information
    Investigator_Name='undefined'
    Experiment_Name='undefined'
#    Date='undefined'
    Workflow='undefined'
    Application='undefined'
    Assay='undefined'
#    Description='undefined'
    Chemistry='undefined'
    Read1='undefined'
    Read2='undefined'
    PhiX='undefined'
    RGT_Box_1='undefined'
    RGT_Box_2='undefined'
    openbis='n'

    touch "$rundir/.UPLOADED_RUN"

}

echo 'GO!'
### main loop over all dirs in $incomingdir starting with "1"
#for rundir in $(find $incomingdir -type d -name "1*" -depth 1)
#for rundir in $(ls $incomingdir)
for rundir in "$incomingdir"/1*; do
    [[ -d "$rundir" ]] || continue
    echo -e "\033[1;31m================================================================================\033[0m"
    echo "Now syncing:" "$rundir"
    process_runs "$rundir"
done

#!/bin/bash

incomingdir=/cygdrive/D/Illumina/MiSeqOutput
incomingdir=/Users/ozagordi/openBIS
bufferdir=/cygdrive/D/BufferDir
bufferdir=/tmp/parse_samples/

# define these globally so no need to pass it as a function parameter
headers='undefined'
rundir='undefined'
IEMFileVersion='undefined'
Investigator_Name='undefined'
Experiment_Name='undefined'
#Date='undefined'
Workflow='undefined'
Application='undefined'
Assay='undefined'
#Description='undefined'
Chemistry='undefined'
Read1='undefined'
Read2='undefined'
PhiX='undefined'
RGT_Box_1='undefined'
RGT_Box_2='undefined'
openbis='n'

# global variable to allow a function return it
ismolis='undefined'

test_molis(){
    if [[ $1 =~ ^100[0-9]{7} ]]; then
        ismolis=true
        return
    else
        ismolis=false
        return
    fi
}

write_miseq_run(){
    # input: run_name space
    # space is Diagnostics or Research
    runname=$1
    dest=$bufferdir/$runname
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"
    prop_file=${dest}/dataset.properties

    datenum=${runname:0:6}
    YYYY=20${datenum:0:2}
    MM=${datenum:2:2}
    DD=${datenum:4:2}

    ### sample_type MISEQ_RUN

    {
    printf "space=%s\n" "$2"
    printf "IEMFileVersion=%s\n" "$IEMFileVersion"
    printf "investigator_name=%s\n" "$Investigator_Name"
    printf "experiment_name=%s\n" "$Experiment_Name"
    printf "date=%s-%s-%s\n" "${YYYY}" "${MM}" "${DD}"
    printf "miseq_workflow=%s\n" "$Workflow"
    printf "Application=%s\n" "$Application"
    printf "Assay=%s\n" "$Assay"
    printf "Chemistry=%s\n" "$Chemistry"
    printf "Read1=%s\n" "$Read1"
    printf "Read2=%s\n" "$Read2"
    printf "PhiX=%s\n" "$PhiX"
    printf "RGT_Box_1=%s\n" "$RGT_Box_1"
    printf "RGT_Box_2=%s\n" "$RGT_Box_2"
    } > "$prop_file"
}

write_miseq_sample(){
    # input is a line in section [Data] of the samples sheet
    # copy fastq file into $bufferdir/$rundir/S.../ and write dataset.properties

    declare -a sample_line=("${!1}")

    #echo "    " "${sample_line[@]}"

    ### move fastq file into folder

    sample_number=${sample_line[0]}
    sample_name=${sample_line[1]}
    sample_plate=${sample_line[2]}
    sample_well=${sample_line[3]}
    I7_index_id=${sample_line[4]}
    index_1=${sample_line[5]}
    I5_index_id=${sample_line[6]}
    index_2=${sample_line[7]}
    description=${sample_line[9]}

    run_name=`basename "$rundir"`
    ### create folder S.. in $dest
    dest=$bufferdir/${run_name}_S${sample_number}
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"

    fastq_file=$run_name/${sample_name}_S${sample_number}_L001_R1_001.fastq.gz
    if [ -e "$fastq_file" ]; then
        mv "$fastq_file" "$dest/"
    fi

    ### write properties file
    prop_file=${dest}/dataset.properties

    ### space and project

    # space is Diagnostics if sample_name is a MOLIS number
    test_molis "$sample_name"
    if [[ "$ismolis" = true ]];then
        Space='Diagnostics'
    else
        Space='Research'
    fi
    ismolis='undefined'

    # Project from Sample_Project column
    Project=${sample_line[8]}

    ### sample_type MISEQ_SAMPLE
    {
    printf "Space=%s\n" "$Space"
    printf "Project=%s\n" "$Project"
    printf "Sample_ID=%s\n" "${sample_number}"
    printf "Sample_Name=%s\n" "${sample_name}"
    printf "Sample_Plate=%s\n" "${sample_plate}"
    printf "Sample_Well=%s\n" "$sample_well"
    printf "I7_Index_ID=%s\n" "$I7_index_id"
    printf "INDEX_1=%s\n" "$index_1"
    printf "I5_Index_ID=%s\n" "$I5_index_id"
    printf "INDEX_2=%s\n" "$index_2"
    printf "DESCRIPTION=%s\n" "$description"
    } > "$prop_file"
}

write_resistance_test(){

    declare -a sample_line=("${!1}")

    sample_number=${sample_line[0]}
    sample_name=${sample_line[1]}
    #sample_project=${sample_line[8]}
    #Description=${sample_line[9]}
    virus=${sample_line[10]}
    genotype=${sample_line[11]}
    target=${sample_line[12]}
    viral_load=${sample_line[13]}

    run_name=`basename "$rundir"`
    ### create folder S.. in $dest
    dest=$bufferdir/RESTEST_${run_name}_S${sample_number}
    if [[ -d $dest ]];then
        echo "Directory $dest exists! It should not."
        exit 1
    fi
    mkdir "$dest"

    ### write properties file
    prop_file=${dest}/dataset.properties
    touch "$prop_file"

    {
    printf "SAMPLE_NAME=%s\n" "$sample_name"
    printf "VIRUS=%s\n" "$virus"
    printf "TARGET_TYPE=%s\n" "$target"
    printf "GENOTYPE=%s\n" "$genotype"
    printf "VIRAL_LOAD=%s\n" "$viral_load"
    } > "$prop_file"

}

process_runs(){
    # read the samples sheet,
    # save info found in [Header] and [Reads] in global variables
    # call process_sample on all lines in [Data] section

    rundir=$1

    if [[ -e $rundir/.UPLOADED_RUN ]]; then
        echo "Run $rundir already uploaded"
        return
    fi

    # reset headers
    headers='undefined'

    ### remove spaces in sample sheet
    sed -e "s/ /_/g" < "$rundir/Data/Intensities/BaseCalls/SampleSheet.csv" > sample_sheet.tmp

    ### counters for read 1/2 and samples
    r=0
    s=0
    diag_sample=false
    res_sample=false
    ### read sample sheet line by line
    while IFS=',' read -r -a line
    do

        if [[ ${line[0]} =~ ^\[[[:alpha:]]*\] ]]
        then
            section=${line[0]}

        ### [Header] section
        elif [[ $section == "[Header]" && ${line[1]} ]]
        then
            declare "${line[0]}=${line[1]}"

        ### [Reads] section for read 1
        elif [[ $section == "[Reads]" && ${line[0]} =~ ^[0-9]+$ && $r -eq 0 ]]
        then
            # [Header] has now been parsed, if openbis != y then stop parsing
            # this run and go to next
            if [[ "$openbis" == "n" ]]; then
                break
            fi
            r=1
            # echo $section ${line[0]}
            Read1=${line[0]}

        ### [Reads] section for read 2
        elif [[ $section == "[Reads]" && ${line[0]} =~ ^[0-9]+$ && $r -eq 1 ]]
        then
            r=2
            # echo $section ${line[0]}
            Read2=${line[0]}

        ### [Data] section headers
        elif [[ $section == "[Data]" && ${line[1]} && $s -eq 0 ]]
        then
            headers=( "${line[@]}" )
            echo -e "  Headers found:" "${headers[@]}"
            ((s+=1))

        ### [Data] section values
        elif [[ $section == "[Data]" && ${line[1]} && $s -gt 0 ]]
        then
            # echo "Before: " "$ismolis"
            echo "    " "${line[@]}"
            test_molis "${line[1]}"
            if [ "$ismolis" = true ]; then
                diag_sample=true
            else
                res_sample=true
            fi
            #echo "After: " "$ismolis"
            ismolis='undefined'
            write_miseq_sample line[@]
            if [[ "${line[8]}" == "Resistance" ]]; then
                write_resistance_test line[@]
            fi
            ((s+=1))
        fi
    done < sample_sheet.tmp

    ### remove temporary file
    rm sample_sheet.tmp
    run_name=`basename "$rundir"`
    # if any sample was "diagnostics" then write diagnostic run
    if [ "$diag_sample" = true ]; then
        echo "WRITING DIAGNOSTICS"
        write_miseq_run "${run_name}_DIA" Diagnostics
    fi
    # if any sample was "research" then write research run
    if [ "$res_sample" = true ]; then
        echo "WRITING RESEARCH"
        write_miseq_run "${run_name}_RES" Research
    fi

    # reset [Header] and [Reads] information
    Investigator_Name='undefined'
    Experiment_Name='undefined'
#    Date='undefined'
    Workflow='undefined'
    Application='undefined'
    Assay='undefined'
#    Description='undefined'
    Chemistry='undefined'
    Read1='undefined'
    Read2='undefined'
    PhiX='undefined'
    RGT_Box_1='undefined'
    RGT_Box_2='undefined'
    openbis='n'

    touch "$rundir/.UPLOADED_RUN"

}

echo 'GO!'
### main loop over all dirs in $incomingdir starting with "1"
#for rundir in $(find $incomingdir -type d -name "1*" -depth 1)
#for rundir in $(ls $incomingdir)
for rundir in "$incomingdir"/1*; do
    [[ -d "$rundir" ]] || continue
    echo -e "\033[1;31m================================================================================\033[0m"
    echo "Now syncing:" "$rundir"
    process_runs "$rundir"
done


Modify patch command

Modify patch command

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Tutul-/tumuxOS.git/'


Forgot Travis-specific bootstrap file

Forgot Travis-specific bootstrap file

#! /usr/bin/env bash

if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
    brew link --force gettext
fi
autoreconf -i -f

error: pathspec '.travis/autogen.sh' did not match any file(s) known to git


new shortcuts for writting

new shortcuts for writting

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/vitorgalvao/dotfiles.git/'


small script for linking local prototypo libs

npm link prototypo.js
npm link prototypo-canvas
npm link genese.ptf

error: pathspec 'link-locallib.sh' did not match any file(s) known to git


Remove install for qfc and myrepos.

Remove install for qfc and myrepos.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/meyerlasse/Linux-Startup.git/'


Updated git template.

Updated git template.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/sw1nn/dotfiles.git/'


Makefile script in liberty does not teardown barbican containers (#508)

* Makefile script in liberty does not teardown barbican containers

Issues:
Fixes #507

Problem:
The makefile script cleanup_tlc_session.sh does not cleanup the barbican
container with the uninstall_barbican tlc command. This is because
previously, we were not using barbican in the liberty branch.

Analysis:
Added the barbican container cleanup to the cleanup_tlc_session.sh
script.

Tests:
Ran the test locally.

* Addressing code review comments from @mattgreene. Fixing comment in cleanup_tlc_session.sh.

#!/usr/bin/env bash

# Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -x

# Teardown the barbican worker and cleanup the TLC session
tlc --session ${TEST_SESSION} --debug cmd uninstall_barbican
tlc --session ${TEST_SESSION} --debug cleanup

#!/usr/bin/env bash

# Copyright 2017 F5 Networks Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

set -x

# We only need to cleanup the session, we didn't use barbican-enabled TLC file
tlc --session ${TEST_SESSION} --debug cleanup


added sh file

added sh file

#!/bin/bash

give-me-everything() {
  CLASSPATH=REPLACE_WITH_YOUR_JAR_LOCATION
  java -jar $CLASSPATH "$@"
}

error: pathspec 'give-me-everything.sh' did not match any file(s) known to git


pull before publish new JGiven reports

pull before publish new JGiven reports

#!/bin/sh
set -e
mvn clean verify
git checkout gh-pages
git pull --rebase
git rm -r jgiven-report/*
cp -r jgiven-tests/target/jgiven-reports/html/ jgiven-report
git add jgiven-report/
git commit -m 'added generated jgiven report to gh-pages'
git push
git checkout -f master

#!/bin/sh
set -e
mvn clean verify
git checkout gh-pages
git rm -r jgiven-report/*
cp -r jgiven-tests/target/jgiven-reports/html/ jgiven-report
git add jgiven-report/
git commit -m 'added generated jgiven report to gh-pages'
git push
git checkout -f master


Add main tac16 eval scripts with thanks to Hoa Trang Dang

#!/usr/bin/env bash
set -e

usage="Usage: $0 GOLD SYSTEMS_DIR OUT_DIR NUM_JOBS [-x EXCLUDED_SPANS]"

if [ "$#" -lt 4 ]; then
    echo $usage
    exit 1
fi

gtab=$1; shift # gold standard link annotations (tab-separated)
sysdir=$1; shift # directory containing output from systems
outdir=$1; shift # directory to which results are written
jobs=$1; shift # number of jobs for parallel mode

SCR=`dirname $0`

# CONVERT GOLD TO EVALUATION FORMAT
echo "INFO Converting gold to evaluation format.."
# XXX: "combined" is a misnomer in tac15. Should be neleval? But existing scripts depend on this extension.
gold=$outdir/gold.combined.tsv
options=$@
./nel prepare-tac15 $gtab $options > $gold

# convert systems to evaluation format
echo "INFO converting systems to evaluation format.."
ls $sysdir/* \
	| xargs -I{} -n 1 -P $jobs bash -c "f={}; ./nel prepare-tac15 \$f $options > $outdir/\$(basename \$f).combined.tsv"

# EVALUATE
echo "INFO Evaluating systems.."
ls $outdir/*.combined.tsv \
    | grep -v "gold\.combined\.tsv$" \
    | xargs -n 1 -P $jobs $SCR/run_evaluate.sh $gold

# PREPARE SUMMARY REPORT
echo "INFO Preparing summary report.."
$SCR/run_tac14_report.sh $outdir

error: pathspec 'scripts/run_tac16_evaluation.sh' did not match any file(s) known to git


added quiet flag to wget

added quiet flag to wget

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/thammegowda/incubator-joshua.git/'


Add hotplug script

Add hotplug script

#!/bin/bash

export DISPLAY=:0
export XAUTHORITY=/home/marcus/.Xauthority

DP1=`xrandr | grep "^DP1 connected"`
DP2=`xrandr | grep "^DP2 connected"`

if [ -n "$DP1" ]; then
	xrandr --output DP1 --preferred --primary --output eDP1 --off
elif [ -n "$DP2" ]; then
	xrandr --output DP2 --preferred --primary --output eDP1 --off
else
	xrandr --output eDP1 --preferred --primary
fi

nitrogen --restore

error: pathspec 'bin/bin/hotplug.sh' did not match any file(s) known to git


test/watch.sh: helper script, acts like watch but passes escape sequences (for colorful test output)

#!/bin/bash

IFS=''
clear
while output=$(
	{
		exec 2>&1
		date
		time "$@"
	} |
	while read -rs line; do
		printf '%s\033%s[K\n' "$line"
	done
); do
	printf $'\033[H%s\n\033[J' "$output"
	sleep .5
done

error: pathspec 'test/watch.sh' did not match any file(s) known to git


automatically clone / pull down latest code

as this repo is likely to get stale - this shell script can be run to automatically pull down / convert proto files to multiple languages for tensorflow.

# chmod +x cloneConvertProto.sh
printf "\033c"
echo "Fetching latest protobuf from Apple"
git clone https://github.com/apple/swift-protobuf.git
cd swift-protobuf
swift build
cp .build/debug/protoc-gen-swift ./
cd ..

printf "\033c"
read -p "WARNING - do you want to clean tensorflow directory? [y/N]" CONDITION;
if [ "$CONDITION" == "y" ] ; then
    rm -rf tensorflow
fi
echo "Fetching latest proto files from tensorflow"
#
git clone git@github.com:tensorflow/tensorflow.git
printf "\033c"
cd tensorflow
find . -type f ! -name '*.proto' -delete #remove any file not proto
find . -type d -empty -delete #remove empty directories

if ! xcode-select -p >/dev/null; then
  echo "Installing xcode command line tools";
  sudo xcode-select --install
fi

printf "\033c"
if ! which grpc_python_plugin >/dev/null; then
 echo "Installing GRPC with all plugins via brew";
 curl -fsSL https://goo.gl/getgrpc | bash -s -- --with-plugins
fi

printf "\033c"
echo  "INFO - Convert tensorflow protobuffers to "
printf  "\n\n"

echo  "1 - Swift"
echo   "2 - ObjC"
echo   "3 - Python"
echo   "4 - Ruby"
echo   "5 - Node"
echo   "6 - c#"
echo   "7 - c++"
printf  "\n\n"
printf  "[1], 2, 3, 4, 5, 6, 7"
printf  "\n\n"
read -p "" CONDITION;

if which protoc >/dev/null; then

	for file_path in $(find . -name "*.proto"); do
        DIR=$(dirname $file_path)
        #echo "$DIR"
        echo "$file_path"

        # Swift
        if [ "$CONDITION" == "1" ] ; then
          protoc --plugin=../swift-protobuf/protoc-gen-swift $file_path  --swift_out="."
        fi

        # Objective -C
        if [ "$CONDITION" == "2" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which grpc_objective_c_plugin) \
        --objc_out=. \
        --grpc_out=. \
        -I . \
        -I $DIR \
        $file_path
        fi

        # Python
        if [ "$CONDITION" == "3" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which  grpc_python_plugin) \
        --python_out=. \
        --grpc_out=. \
        $file_path
        fi

        # Ruby
        if [ "$CONDITION" == "4" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which grpc_ruby_plugin) \
        --ruby_out=. \
        --grpc_out=. \
        $file_path
        fi

        # Node
        if [ "$CONDITION" == "5" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which grpc_node_plugin) \
        --node_out=. \
        --grpc_out=. \
        $file_path
        fi

        # C#
        if [ "$CONDITION" == "6" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which grpc_csharp_plugin) \
        --csharp_out=. \
        --grpc_out=. \
        $file_path
        fi

        # C++
        if [ "$CONDITION" == "7" ] ; then
        protoc --plugin=protoc-gen-grpc=$(which grpc_cpp_plugin) \
        --cpp_out=. \
        --grpc_out=. \
        $file_path
        fi

	done

else
  echo "warning: Protoc not installed"
fi

error: pathspec 'cloneConvertProto.sh' did not match any file(s) known to git


Add start script for caves shard

Add start script for caves shard

#!/usr/bin/env bash

cd "/home/dst/.steam/SteamApps/common/Don't Starve Together Dedicated Server/bin"
/home/dst/.steam/SteamApps/common/Don\'t\ Starve\ Together\ Dedicated\ Server/bin/dontstarve_dedicated_server_nullrenderer -cluster Cluster_1 -shard Caves

error: pathspec 'bin/start_caves.sh' did not match any file(s) known to git


Log when the server has responded

Log when the server has responded

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/MYOB-Technology/cucumber-browser-preset-myob.git/'


Updated alternate editor for client

Updated alternate editor for client

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/shanep/os-config.git/'


Script to create release archive

Script to create release archive

export TERMINIX_ARCHIVE_PATH="/tmp/terminix/archive";

CURRENT_DIR=$(pwd)

echo "Building application..."
cd ../..
dub build --build=release

echo "Copying resource files..."
cd data/pkg
rm -rf ${TERMINIX_ARCHIVE_PATH}
mkdir -p ${TERMINIX_ARCHIVE_PATH}

mkdir -p ${TERMINIX_ARCHIVE_PATH}/usr/share/glib-2.0/schemas/
cp ../gsettings/com.gexperts.Terminix.gschema.xml ${TERMINIX_ARCHIVE_PATH}/usr/share/glib-2.0/schemas/

export TERMINIX_SHARE=${TERMINIX_ARCHIVE_PATH}/usr/share/terminix

mkdir -p ${TERMINIX_SHARE}/resources
mkdir -p ${TERMINIX_SHARE}/schemes

# Copy and compile icons
cd ../resources
glib-compile-resources terminix.gresource.xml
cp terminix.gresource ${TERMINIX_SHARE}/resources/terminix.gresource
cd ../pkg

# Copy color schemes
cp ../schemes/* ${TERMINIX_SHARE}/schemes

mkdir -p ${TERMINIX_ARCHIVE_PATH}/usr/bin
mkdir -p ${TERMINIX_ARCHIVE_PATH}/usr/share/applications

# Copy executable and desktop file
cp ../../terminix ${TERMINIX_ARCHIVE_PATH}/usr/bin
cp desktop/terminix.desktop ${TERMINIX_ARCHIVE_PATH}/usr/share/applications

echo "Creating archive"
cd ${TERMINIX_ARCHIVE_PATH}
zip -r terminix.zip *

cp terminix.zip ${CURRENT_DIR}/terminix.zip
cd ${CURRENT_DIR}

error: pathspec 'data/pkg/createReleaseArchive.sh' did not match any file(s) known to git


Script for gridEngine

Script for gridEngine

git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@1789 28e8926c-6b08-0410-baaa-805c5e19b8d6

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/lpellegr/scheduling.git/'


Simplify vim-plug installer script

Simplify vim-plug installer script

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/petermbenjamin/dotfiles.git/'


FIX CKAN datastore create script to take into account metadata columns

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/jmcanterafonseca/fiware-cygnus.git/'


Assume yes on gpg questions

Assume yes on gpg questions

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/gdl-lang/gdl2.git/'


clean code

clean code

Signed-off-by: Zhou Chang <e44db33ba4b93dbdc30674f3e64b79df8e3590ab@gmail.com>

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Teaonly/easyLearning.js.git/'


chore(): add check to release script

chore(): add check to release script

The release script should only be run when the most recent tag != `package.json`.version. If they are the same, the the current version is already tagged. If they differ, then a release can be cut.

Closes #216.

#!/bin/bash

# NOTE: DO NOT RUN THIS SCRIPT UNLESS CREATING A RELEASE!!!!!!!!
#   This should only be done by the project owner(s). If it is run by mistake, it will
#   require cleanup in the main repos resulting in rewriting history & likey screwingup
#   most forks.
#
# This script is only used when creating a new release. It expects the following:
#   1. to be run from the `master` branch
#   2. all updates to be included in the release that need to be applied
#       have been applied to local `master` including updating package.json to
#       the desired release version, the correct angular, office ui fabric & other
#       dependencies & the changelog.md has been updated
#
# The script will do the following things:
#   1. remove any previous compiles in `/dist`
#   2. get the version from this repo's pacakge.json - this will be the version
#       of the release
#   3. compile the library to production & debug mode
#   4. update this repo's origin master:
#     4.1. push any pending commits => origin master
#     4.2. tag with the current version & push tags to origin
#   5. call scripts to update package-* & nuget-* distros
#
# Usage:
# $ sh [path-to-script]/release.sh --git-push-dryrun=(true|false)
# ^^^ this will default to --git-push-dryrun=true meaning that all git push commands
#     will have the `--dry-run` argument added and thus, nothing is push to remotes
# ^^^ to ensure these things run, you must specify --git-push-dryrun=false

function init {
  # if set, export --git-push-dryrun so available in other scripts
  export GIT_PUSH_DRYRUN=$GIT_PUSH_DRYRUN
}

function run {
  # jump up to the root of the repo
  cd ../..
  SRC_PATH=$PWD

  # make sure in root of repo
  if [ "${SRC_PATH##*/}" != "ng-officeuifabric" ]; then
    echo "ERROR: script must be run from the root of the 'ng-officeuifabric' repo"
    echo "ERROR: you are running from '${SRC_PATH##*/}'"
    exit 1
  fi

  echo "LOG: current folder: $SRC_PATH"

  # get version
  VERSION="$(readJsonProp "package.json" "version")"

  # get last tag
  LAST_TAG=$(git describe --tags --abbrev=0)

  # make sure version != last tag,
  # `if so, no release needed so abort
  if [ "$LAST_TAG" == "$VERSION" ]; then
    echo "INFO: not a new version; aborting release script"
    exit 1
  fi

  # pre cleaning
  echo ".. pre cleaning"
  rm -Rf dist

  # compile production & debug library
  echo ".. compiling prod & debug library"
  gulp build-lib
  gulp build-lib --dev

  # update source repo
  echo ".. updating source repo ng-officeuifabric"
  cd $SRC_PATH

  echo ".. .. pushing origin master"
  git push -q origin master

  echo ".. .. adding tag for version $VERSION & pushing orign master"
  git tag -f $VERSION
  git push --tags

  # update the package & nuget repo
  sh ./build/scripts/update-package-repo.sh --version=$VERSION --src=$SRC_PATH
  sh ./build/scripts/update-nuget-repo.sh --version=$VERSION --src=$SRC_PATH
}

source $(dirname $0)/utils.inc

#!/bin/bash

# NOTE: DO NOT RUN THIS SCRIPT UNLESS CREATING A RELEASE!!!!!!!!
#   This should only be done by the project owner(s). If it is run by mistake, it will
#   require cleanup in the main repos resulting in rewriting history & likey screwingup
#   most forks.
#
# This script is only used when creating a new release. It expects the following:
#   1. to be run from the `master` branch
#   2. all updates to be included in the release that need to be applied
#       have been applied to local `master` including updating package.json to
#       the desired release version, the correct angular, office ui fabric & other
#       dependencies & the changelog.md has been updated
#
# The script will do the following things:
#   1. remove any previous compiles in `/dist`
#   2. get the version from this repo's pacakge.json - this will be the version
#       of the release
#   3. compile the library to production & debug mode
#   4. update this repo's origin master:
#     4.1. push any pending commits => origin master
#     4.2. tag with the current version & push tags to origin
#   5. call scripts to update package-* & nuget-* distros
#
# Usage:
# $ sh [path-to-script]/release.sh --git-push-dryrun=(true|false)
# ^^^ this will default to --git-push-dryrun=true meaning that all git push commands
#     will have the `--dry-run` argument added and thus, nothing is push to remotes
# ^^^ to ensure these things run, you must specify --git-push-dryrun=false

function init {
  # if set, export --git-push-dryrun so available in other scripts
  export GIT_PUSH_DRYRUN=$GIT_PUSH_DRYRUN
}

function run {
  # jump up to the root of the repo
  cd ../..
  SRC_PATH=$PWD

  # make sure in root of repo
  if [ "${SRC_PATH##*/}" != "ng-officeuifabric" ]; then
    echo "ERROR: script must be run from the root of the 'ng-officeuifabric' repo"
    echo "ERROR: you are running from '${SRC_PATH##*/}'"
    exit 1
  fi

  echo "LOG: current folder: $SRC_PATH"

  # pre cleaning
  echo ".. pre cleaning"
  rm -Rf dist

  # get version
  VERSION="$(readJsonProp "package.json" "version")"

  # compile production & debug library
  echo ".. compiling prod & debug library"
  gulp build-lib
  gulp build-lib --dev

  # update source repo
  echo ".. updating source repo ng-officeuifabric"
  cd $SRC_PATH

  echo ".. .. pushing origin master"
  git push -q origin master

  echo ".. .. adding tag for version $VERSION & pushing orign master"
  git tag -f $VERSION
  git push --tags

  # update the package & nuget repo
  sh ./build/scripts/update-package-repo.sh --version=$VERSION --src=$SRC_PATH
  sh ./build/scripts/update-nuget-repo.sh --version=$VERSION --src=$SRC_PATH
}

source $(dirname $0)/utils.inc


shell script for code display

shell script for code display

#!/bin/sh
nohup python code_display.py >/dev/null 2>&1

error: pathspec 'code/code_display.sh' did not match any file(s) known to git


build: adjust hostenv.sh for OS X

build: adjust hostenv.sh for OS X

git-svn-id: f7818b41aa164576329f806d7c3827e8a55298bb@5654 ab181a69-ba2e-0410-a84d-ff88ab4c47bc

##!/bin/sh
export LD_LIBRARY_PATH="$1/usr/lib:$LD_LIBRARY_PATH"
[ `uname -s` == "Darwin" ] && export DYLD_LIBRARY_PATH="$1/usr/lib:$DYLD_LIBRARY_PATH"
export PATH="$1/bin:$1/usr/bin:$PATH"
export LUA_PATH="$1/$2/?.lua;$1/$2/?/init.lua;;"
export LUA_CPATH="$1/$3/?.so;;"
export LUCI_SYSROOT="$1"
$4

#!/bin/sh
export LD_LIBRARY_PATH="$1/usr/lib:$LD_LIBRARY_PATH"
export PATH="$1/bin:$1/usr/bin:$PATH"
export LUA_PATH="$1/$2/?.lua;$1/$2/?/init.lua;;"
export LUA_CPATH="$1/$3/?.so;;"
export LUCI_SYSROOT="$1"
$4


add base16 color theme

add base16 color theme

Former-commit-id: 06ff4f8e3ca90211c28a579afa7fd57be1152115
Former-commit-id: d739d2392f28d2fe1e6533c44a82635b88f4d559
Former-commit-id: 323630be8589d22715bacfcdbb2727da21e2b564

#!/bin/sh
# Base16 Atelier Lakeside - Shell color setup script
# Bram de Haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)

if [ "${TERM%%-*}" = 'linux' ]; then
    # This script doesn't support linux console (use 'vconsole' template instead)
    return 2>/dev/null || exit 0
fi

color00="16/1b/1d" # Base 00 - Black
color01="d2/2d/72" # Base 08 - Red
color02="56/8c/3b" # Base 0B - Green
color03="8a/8a/0f" # Base 0A - Yellow
color04="25/7f/ad" # Base 0D - Blue
color05="5d/5d/b1" # Base 0E - Magenta
color06="2d/8f/6f" # Base 0C - Cyan
color07="7e/a2/b4" # Base 05 - White
color08="5a/7b/8c" # Base 03 - Bright Black
color09=$color01 # Base 08 - Bright Red
color10=$color02 # Base 0B - Bright Green
color11=$color03 # Base 0A - Bright Yellow
color12=$color04 # Base 0D - Bright Blue
color13=$color05 # Base 0E - Bright Magenta
color14=$color06 # Base 0C - Bright Cyan
color15="eb/f8/ff" # Base 07 - Bright White
color16="93/5c/25" # Base 09
color17="b7/2d/d2" # Base 0F
color18="1f/29/2e" # Base 01
color19="51/6d/7b" # Base 02
color20="71/95/a8" # Base 04
color21="c1/e4/f6" # Base 06
color_foreground="7e/a2/b4" # Base 05
color_background="16/1b/1d" # Base 00
color_cursor="7e/a2/b4" # Base 05

if [ -n "$TMUX" ]; then
  # tell tmux to pass the escape sequences through
  # (Source: http://permalink.gmane.org/gmane.comp.terminal-emulators.tmux.user/1324)
  printf_template="\033Ptmux;\033\033]4;%d;rgb:%s\007\033\\"
  printf_template_var="\033Ptmux;\033\033]%d;rgb:%s\007\033\\"
  printf_template_custom="\033Ptmux;\033\033]%s%s\007\033\\"
elif [ "${TERM%%-*}" = "screen" ]; then
  # GNU screen (screen, screen-256color, screen-256color-bce)
  printf_template="\033P\033]4;%d;rgb:%s\007\033\\"
  printf_template_var="\033P\033]%d;rgb:%s\007\033\\"
  printf_template_custom="\033P\033]%s%s\007\033\\"
else
  printf_template="\033]4;%d;rgb:%s\033\\"
  printf_template_var="\033]%d;rgb:%s\033\\"
  printf_template_custom="\033]%s%s\033\\"
fi

# 16 color space
printf $printf_template 0  $color00
printf $printf_template 1  $color01
printf $printf_template 2  $color02
printf $printf_template 3  $color03
printf $printf_template 4  $color04
printf $printf_template 5  $color05
printf $printf_template 6  $color06
printf $printf_template 7  $color07
printf $printf_template 8  $color08
printf $printf_template 9  $color09
printf $printf_template 10 $color10
printf $printf_template 11 $color11
printf $printf_template 12 $color12
printf $printf_template 13 $color13
printf $printf_template 14 $color14
printf $printf_template 15 $color15

# 256 color space
printf $printf_template 16 $color16
printf $printf_template 17 $color17
printf $printf_template 18 $color18
printf $printf_template 19 $color19
printf $printf_template 20 $color20
printf $printf_template 21 $color21

# foreground / background / cursor color
if [ -n "$ITERM_SESSION_ID" ]; then
  # iTerm2 proprietary escape codes
  printf $printf_template_custom Pg 7ea2b4 # forground
  printf $printf_template_custom Ph 161b1d # background
  printf $printf_template_custom Pi 7ea2b4 # bold color
  printf $printf_template_custom Pj 516d7b # selection color
  printf $printf_template_custom Pk 7ea2b4 # selected text color
  printf $printf_template_custom Pl 7ea2b4 # cursor
  printf $printf_template_custom Pm 161b1d # cursor text
else
  printf $printf_template_var 10 $color_foreground
  printf $printf_template_var 11 $color_background
  printf $printf_template_var 12 $color_cursor
fi

# clean up
unset printf_template
unset printf_template_var
unset color00
unset color01
unset color02
unset color03
unset color04
unset color05
unset color06
unset color07
unset color08
unset color09
unset color10
unset color11
unset color12
unset color13
unset color14
unset color15
unset color16
unset color17
unset color18
unset color19
unset color20
unset color21
unset color_foreground
unset color_background
unset color_cursor

error: pathspec 'base16-atelierlakeside.dark.sh' did not match any file(s) known to git


wait for x

wait for x

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/kxes/docktop-os.git/'


Only add build for Android

Only add build for Android

#!/bin/bash
export CROSS_PREFIX=arm-linux-androideabi-
export TOOLCHAIN=/tmp/ndk-arm
$ANDROID_NDK/build/tools/make-standalone-toolchain.sh --toolchain=${CROSS_PREFIX}4.8 --install-dir=${TOOLCHAIN}

export PATH=$TOOLCHAIN/bin:$PATH
export CC=arm-linux-androideabi-gcc
export CXX=arm-linux-androideabi-g++
export TARGET_OS=OS_ANDROID_CROSSCOMPILE

make clean
make -j4

error: pathspec 'build_android.sh' did not match any file(s) known to git


scripts/travis-ci: bump apt timeout in before_install.bash.

After switching to using a mirror of MXE on dl.mumble.info we've begun
running into timeouts from apt on Travis CI. For example:

	E: Failed to fetch https://dl.mumble.info/mirror/pkg.mxe.cc/repos/apt/debian/pool/main/m/mxe-x86-64-unknown-linux-gnu-cmake/mxe-x86-64-unknown-linux-gnu-cmake_3.5.2-20170208_amd64.deb  Operation too slow. Less than 10 bytes/sec transferred the last 10 seconds

The error is from cURL, and it means that the options CURLOPT_LOW_SPEED_LIMIT
and CURLOPT_LOW_SPEED_TIME are set quite low.
(See https://github.com/curl/curl/blob/bb0ffcc36fd46298e02f943b255ee5d6553c06dc/lib/speedcheck.c)

To fix this, we set the Acquire::http::Timeout option to 120 seconds.
This causes apt's https transport to set CURLOPT_LOW_SPEED_TIME to 120.
(See https://github.com/Debian/apt/blob/debian/wheezy/methods/https.cc#L224-L230)

Fixes mumble-voip/mumble#3312

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/Lartza/mumble.git/'


KYLIN-868 add a metadata backup/restore script in bin folder

#!/bin/bash

dir=$(dirname ${0})
source ${dir}/check-env.sh

_jobjar=`ls ${KYLIN_HOME}/lib |grep kylin-job`
_fulljobjar="${KYLIN_HOME}/lib/${_jobjar}"

if [ $1 == "backup" ]
then

    mkdir -p ${KYLIN_HOME}/meta_backups

    _now=$(date +"%Y_%m_%d_%H_%M_%S")
    _file="${KYLIN_HOME}/meta_backups/meta_${_now}"
    echo "Starting backup to ${_file}"
    mkdir -p ${_file}

    hbase  org.apache.hadoop.util.RunJar ${_fulljobjar}   org.apache.kylin.common.persistence.ResourceTool  copy ${KYLIN_HOME}/conf/kylin.properties ${_file}
    echo "metadata store backed up to ${_file}"

elif [ $1 == "restore" ]
then

    _file=$2
    echo "Starting restoring $_file"
    hbase  org.apache.hadoop.util.RunJar  ${_fulljobjar}   org.apache.kylin.common.persistence.ResourceTool  copy $_file ${KYLIN_HOME}/conf/kylin.properties

elif [ $1 == "reset" ]
then

    hbase  org.apache.hadoop.util.RunJar ${_fulljobjar}   org.apache.kylin.common.persistence.ResourceTool  reset

else
    echo "usage: metastore.sh backup or metastore.sh restore PATH_TO_LOCAL_META"
    exit 1
fi

error: pathspec 'bin/metastore.sh' did not match any file(s) known to git


Add a setup tool

Add a setup tool

if ! type brew > /dev/null 2>&1; then
	ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi

if ! type carthage > /dev/null 2>&1; then
	brew install carthage
fi

if ! type swiftlint > /dev/null 2>&1; then
	brew install swiftlint
fi

bundle install

error: pathspec 'tool/setup.sh' did not match any file(s) known to git


Adding workaround for old git version of 10.04.  Credit for workaround goes to @ehough.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cloudn/cf-php-buildpack-binary-build-scripts.git/'


Fixes typo in publish.sh.

Fixes typo in publish.sh.

#!/bin/bash

bridgepkgs=(Bridge.Core Bridge.Min Bridge.Html5 Bridge)
#bridgepkgs=()
frameworkpkgs=(Bridge.Bootstrap Bridge.Html5.Console Bridge.jQuery Bridge.QUnit Bridge.WebGL)
#frameworkpkgs=()
otherpkgs=(
 "Bridge.Clean:Bridge"
 "Bridge.Newtonsoft.Json:"
 "Bridge.Test:"
 "Bridge.Test.Core:Test"
 "Bridge.Aspect:"
)
#otherpkgs=("Bridge.Test:")

logfile="publish.log"
nuget_exe="../../.nuget/nuget.exe"

function log() {
 echo "$(date) - ${@}" >> "${logfile}"
}

function trigger_error() {
 if [ ${#@} -gt 0 ]; then
  >&2 echo "*** Error: ${@}"
  log "Error: ${@}"
 else
  >&2 echo "*** Error. Aborting script execution."
  log "Error."
 fi
 exit 1
}

function showhelp() {
 echo "usage: ${0} [--dry-run|--help]"
}

dry_run=false
if [ ! -z "${1}" ]; then
 case "${1}" in
  "--dry-run") dry_run=true;;
  "--help"|"-h") showhelp; exit 0;;
  *) showhelp; trigger_error "Unexpected argument: ${1}"
 esac
fi

echo -n "Inferring Bridge version: "
version="$(egrep AssemblyInformationalVersion ../common/CommonAssemblyInfo.cs | cut -f2 -d\")"

log "Publish script started."

if [ -z "${version}" ]; then
 echo "error."
 trigger_error "Unable to fetch Bridge version number. Bailing out."
fi
echo "${version}."

if [ ! -x "${nuget_exe}" ]; then
 trigger_error "Unable to run NuGet client at: ${nuget_exe}."
fi

function nuget_ver_exists() {
 local nupkg="${1}"
 local versn="${2}"
 local versions="$(curl -s https://api.nuget.org/v3-flatcontainer/${1}/index.json)"

 if echo "${versions}" | egrep -q "\"${versn//\./\\\.}\""; then
  return 0
 else
  return 1
 fi
}

echo "Pre-checking whether all NuGet packages exist and need updating."
packages_to_publish=()

for pkg in "${bridgepkgs[@]}"; do
 echo -n "- ${pkg}: v${version} "
 filename="${pkg}.${version}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${version}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

for pkg in "${frameworkpkgs[@]}"; do
 echo -n "- ${pkg}: "

 nuspecfile="../../../Frameworks/.build/specs/${pkg}.nuspec"
 if [ ! -e "${nuspecfile}" ]; then
  echo "error."
  trigger_error "Unable to find .nuspec file for '${pkg}': ${nuspecfile}"
 fi
 pkgdir="$(egrep "^ *<file src=\"\.\.\\\\\.\.\\\\" "${nuspecfile}" | head -n1 | cut -f3 -d\\)"
 asmifile="../../../Frameworks/${pkgdir}/Properties/AssemblyInfo.cs"

 if [ ! -e "${asmifile}" ]; then
  echo "error."
  trigger_error "Unable to find assembly info file: ${asmifile}"
 fi

 pkgver="$(egrep "AssemblyInformationalVersion" "${asmifile}" | cut -f2 -d\")"
 if [ -z "${pkgver}" ]; then
  echo "error."
  trigger_error "Unable to infer version for the package."
 fi
 echo -n "v${pkgver} "
 filename="${pkg}.${pkgver}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${pkgver}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

for pkgpair in "${otherpkgs[@]}"; do
 pkg="${pkgpair%%:*}"
 echo -n "- ${pkg%%:*}: "

 asmifile="${pkgpair#*:}"

 if [ -z "${asmifile}" ]; then
  if [ -d "../../../${pkg}" ]; then
   asmifile="${pkg}"
  elif [ -d "../../../${pkg#*.}" ]; then
   asmifile="${pkg#*.}"
  fi
 fi

 asmifile="../../../${asmifile}/.build/common/CommonAssemblyInfo.cs"
 if [ ! -e "${asmifile}" ]; then
  echo "error."
  trigger_error "Unable to find assembly info file: ${asmifile}"
 fi

 pkgver="$(egrep "AssemblyInformationalVersion" "${asmifile}" | cut -f2 -d\")"
 if [ -z "${pkgver}" ]; then
  echo "error."
  trigger_error "Unable to infer version for the package."
 fi
 echo -n "v${pkgver} "
 filename="${pkg}.${pkgver}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${pkgver}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

if ! ${dry_run}; then
 echo "
About to publish the following packages:"
 for pkg in "${packages_to_publish[@]}"; do
  echo "- ${pkg}"
 done

 echo -n "
Enter NuGet API Key: "
 read -s apikey

 if [ "${#apikey}" -ne 36 -o "${apikey}" != "${apikey//[^a-f0-9-]/}" ]; then
  trigger_error "Invalid API key."
 else
  echo "API key read."
 fi

 for pkg in "${packages_to_publish[@]}"; do
  log "Publishing ${pkg}"
  echo -n "Publishing: ${pkg%.nupkg}"
  result="$("${nuget_exe}" push "${pkg}" -source "https://www.nuget.org/" -apikey "${apikey}" -verbosity detailed -timeout 600 -noninteractive -forceenglishoutput 2>&1)"
  exit_status="${?}"

  log "Command output:
${result}"
  if [ ${exit_status} -ne 0 ]; then
   echo "$(date) - Error trying to publish ${pkg}. Output:
${result}
$(date) - End of report." >> publish.error.log
   echo ", failed."
   trigger_error "NuGet push failed. See 'publish.error.log' for details."
  else
   echo ", succeeded."
   log "Publishing ${pkg} succeeded."
  fi
 done
 echo "Done. Total: ${#packages_to_publish[@]} packages published.

Please notice it may take a while for NuGet API and website to reflect the
updated packages' version. This means, running this script right after a
successful publish sweep will still report the versions as not published."
else
 echo "
Packages that would have been published:"
 for pkg in "${packages_to_publish[@]}"; do
  echo "- ${pkg}"
 done
 echo "Total: ${#packages_to_publish[@]} packages. Won't publish anything (dry-run)."
fi

log "Publish script finished."

#!/bin/bash

bridgepkgs=(Bridge.Core Bridge.Min Bridge.Html5 Bridge)
#bridgepkgs=()
frameworkpkgs=(Bridge.Bootstrap Bridge.Html5.Console Bridge.jQuery Bridge.QUnit Bridge.WebGL)
#frameworkpkgs=()
otherpkgs=(
 "Bridge.Clean:Bridge"
 "Bridge.Newtonsoft.Json:"
 "Bridge.Test:"
 "Bridge.Test.Core:Test"
 "Bridge.Aspect:"
)
#otherpkgs=("Bridge.Test:")

logfile="publish.log"
nuget_exe="../../.nuget/nuget.exe"

function log() {
 echo "$(date) - ${@}" >> "${logfile}"
}

function trigger_error() {
 if [ ${#@} -gt 0 ]; then
  >&2 echo "*** Error: ${@}"
  log "Error: ${@}"
 else
  >&2 echo "*** Error. Aborting script execution."
  log "Error."
 fi
 exit 1
}

function showhelp() {
 echo "usage: ${0} [--dry-run|--help]"
}

dry_run=false
if [ ! -z "${1}" ]; then
 case "${1}" in
  "--dry-run") dry_run=true;;
  "--help"|"-h") showhelp; exit 0;;
  *) showhelp; trigger_error "Unexpected argument: ${1}"
 esac
fi

echo -n "Inferring Bridge version: "
version="$(egrep AssemblyInformationalVersion ../common/CommonAssemblyInfo.cs | cut -f2 -d\")"

log "Publish script started."

if [ -z "${version}" ]; then
 echo "error."
 trigger_error "Unable to fetch Bridge version number. Bailing out."
fi
echo "${version}."

if [ ! -x "${nuget_exe}" ]; then
 trigger_error "Unable to run NuGet client at: ${nuget_exe}."
fi

function nuget_ver_exists() {
 local nupkg="${1}"
 local versn="${2}"
 local versions="$(curl -s https://api.nuget.org/v3-flatcontainer/${1}/index.json)"

 if echo "${versions}" | egrep -q "\"${versn//\./\\\.}\""; then
  return 0
 else
  return 1
 fi
}

echo "Pre-checking whether all NuGet packages exist and need updating."
packages_to_publish=()

for pkg in "${bridgepkgs[@]}"; do
 echo -n "- ${pkg}: v${version} "
 filename="${pkg}.${version}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${version}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

for pkg in "${frameworkpkgs[@]}"; do
 echo -n "- ${pkg}: "

 nuspecfile="../../../Frameworks/.build/specs/${pkg}.nuspec"
 if [ ! -e "${nuspecfile}" ]; then
  echo "error."
  trigger_error "Unable to find .nuspec file for '${pkg}': ${nuspecfile}"
 fi
 pkgdir="$(egrep "^ *<file src=\"\.\.\\\\\.\.\\\\" "${nuspecfile}" | head -n1 | cut -f3 -d\\)"
 asmifile="../../../Frameworks/${pkgdir}/Properties/AssemblyInfo.cs"

 if [ ! -e "${asmifile}" ]; then
  echo "error."
  trigger_error "Unable to find assembly info file: ${asmifile}"
 fi

 pkgver="$(egrep "AssemblyInformationalVersion" "${asmifile}" | cut -f2 -d\")"
 if [ -z "${pkgver}" ]; then
  echo "error."
  trigger_error "Unable to infer version for the package."
 fi
 echo -n "v${pkgver} "
 filename="${pkg}.${pkgver}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${pkgver}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

for pkgpair in "${otherpkgs[@]}"; do
 pkg="${pkgpair%%:*}"
 echo -n "- ${pkg%%:*}: "

 asmifile="${pkgpair#*:}"

 if [ -z "${asmifile}" ]; then
  if [ -d "../../../${pkg}" ]; then
   asmifile="${pkg}"
  elif [ -d "../../../${pkg#*.}" ]; then
   asmifile="${pkg#*.}"
  fi
 fi

 asmifile="../../../${asmifile}/.build/common/CommonAssemblyInfo.cs"
 if [ ! -e "${asmifile}" ]; then
  echo "error."
  trigger_error "Unable to find assembly info file: ${asmifile}"
 fi

 pkgver="$(egrep "AssemblyInformationalVersion" "${asmifile}" | cut -f2 -d\")"
 if [ -z "${pkgver}" ]; then
  echo "error."
  trigger_error "Unable to infer version for the package."
 fi
 echo -n "v${pkgver} "
 filename="${pkg}.${pkgver}.nupkg"
 if [ ! -e "${filename}" ]; then
  echo "error."
  trigger_error "Unable to find package: ${filename}"
 fi

 if nuget_ver_exists "${pkg}" "${pkgver}"; then
  echo "already published."
 else
  echo "should be published."
  packages_to_publish+=("${filename}")
 fi
done

if ! ${dry_run}; then
 echo "
About to publish the following packages:"
 for pkg in "${packages_to_publish[@]}"; do
  echo "- ${pkg}"
 done

 echo -n "
Enter NuGet API Key: "
 read -s apikey

 if [ "${#apikey}" -ne 36 -o "${apikey}" != "${apikey//[^a-f0-9-]/}" ]; then
  trigger_error "Invalid API key."
 else
  echo "API key read."
 fi

 for pkg in "${packages_to_publish[@]}"; do
  log "Publishing ${pkg}"
  echo -n "Publishing: ${pkg%.nupkg}"
  result="$("${nuget_exe}" push "${pkg}" -source "https://www.nuget.org/" -apikey "${apikey}" -verbosity detailed -timeout 600 -noninteractive -forceenglishoutput 2>&1)"
  exit_status="${?}"

  log "Command output:
${result}"
  if [ ${exit_status} -ne 0 ]; then
   echo "$(date) - Error trying to publish ${pkg}. Output:
${result}
$(date) - End of report." >> publish.error.log
   echo ", failed."
   trigger_error "NuGet push failed. See 'publish.error.log' for details."
  else
   echo ", succeeded."
   log "Publishing ${pkg} succeeded."
  fi
 done
 echo "Done. Total: ${#packages_to_publish[@]} packages published.

Please notice it may take a while for NuGet API and website to reflect the
updated packages' version. This means, running this script right after a-f0-9-
successful publish sweep will still report the versions as not published."
else
 echo "
Packages that would have been published:"
 for pkg in "${packages_to_publish[@]}"; do
  echo "- ${pkg}"
 done
 echo "Total: ${#packages_to_publish[@]} packages. Won't publish anything (dry-run)."
fi

log "Publish script finished."


Syncing mode tracker.

Syncing mode tracker.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/ioreshnikov/wells.git/'


commiting export script

commiting export script

for topic in `rostopic list -b subset.bag` ; do rostopic echo -p -b subset.bag $topic >bagfile-${topic//\//_}.csv ; done

error: pathspec 'src/autonomy/export.sh' did not match any file(s) known to git


add new line at the end of update_cta.sh

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/anmary/quote-of-the-day-fb-bot.git/'


find Python on SunOS if it exists with ctypes

echo "# SunOS.sh $@ was here" >> conf.mk
# check for python that's advanced enough
PYTHON=`which python`
if test "$PYTHON" != ""; then
  PYTHONVERSION=`$PYTHON <<EOF
try:
    import ctypes
except:
    print 0
else:
    print 1
EOF`
  if test "$PYTHONVERSION" -eq 1; then
     echo "PYTHON=$PYTHON" >> conf.mk
     echo "PYTHON_TARGETS=python" >> conf.mk
  else
     echo "PYTHON=" >> conf.mk
     echo "PYTHON_TARGETS=" >> conf.mk
  fi
else
   echo "PYTHON=" >> conf.mk
   echo "PYTHON_TARGETS=" >> conf.mk
fi

error: pathspec 'ccnd/conf/SunOS.sh' did not match any file(s) known to git


Add python-tox to bootstrap script

Add python-tox to bootstrap script

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/m4dcoder/devbox.git/'


added file to copy plugin to mysql-dir

added file to copy plugin to mysql-dir

rm -fr $1/storage/innobase/*
cp -r * $1/storage/innobase/

error: pathspec 'make_storage.sh' did not match any file(s) known to git


Fix for default depo adding error.

Fix for default depo adding error.

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/liman/liman.git/'


Add script to install dependencies

Add script to install dependencies

#!/bin/bash

# TODO: This would all be great to have in a virtualenv

sudo apt-get install python-dev
sudo apt-get install python-pip
sudo apt-get install python-scipy
sudo apt-get install python-opencv
sudo apt-get install python-h5py

sudo pip install keras
sudo pip install flask

error: pathspec 'install.sh' did not match any file(s) known to git


Create install script

Create install script

# mutt
echo "### mutt ###"
echo "> Enter email:"
read muttemail
echo "> Enter your password or generate it with https://myaccount.google.com/apppasswords:"
read muttpswd
echo "> Enter your first and last name:"
read muttname

sed -i "s/MAIL@gmail.com/$muttemail/g" ./.muttrc
sed -i "s/MYPASSWORD/$muttpswd/g" ./.muttrc
sed -i "s/FName LName/$muttname/g" ./.muttrc

# .gitconfig
echo "### .gitconfig ###"
echo "> Enter signingkey:"
read signingkey
sed -i "s/SIGNINGKEY/$signingkey/g" ./.gitconfig


update jenkins

update jenkins

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/bborbe/image_archiver.git/'


Simultaneous

Simultaneous

error: pathspec 'mysock/cmd.sh' did not match any file(s) known to git


Skip testdata dir when running linter (#956)

Former-commit-id: 039d7fc6b57c1eb371ef80d5cb1c871aa39577cb

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/geeknoid/istio.git/'


Added a script for stream with unsupported characters in name

create namespace testspace
use namespace testspace
delete stream test-bad-name
create stream test-bad-name
execute 'select * from stream_test_bad_name'

error: pathspec 'CdapObcs.TestsManual/test_stream_bad_name.sh' did not match any file(s) known to git


Fail Build Consistently

Fail Build Consistently

#!/bin/sh

echo "Downloading latest Atom release..."
curl -s -L "https://atom.io/download/mac" \
  -H 'Accept: application/octet-stream' \
  -o atom.zip

mkdir atom
unzip -q atom.zip -d atom
export PATH=$PWD/atom/Atom.app/Contents/Resources/app/apm/bin:$PATH

echo "Using Atom version:"
ATOM_PATH=./atom ./atom/Atom.app/Contents/Resources/app/atom.sh -v

echo "Downloading package dependencies..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm clean
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install

if [ -f ./node_modules/.bin/coffeelint ]; then
  if [ -d ./lib ]; then
    echo "Linting package..."
    ./node_modules/.bin/coffeelint lib
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
  fi
  if [ -d ./spec ]; then
    echo "Linting package specs..."
    ./node_modules/.bin/coffeelint spec
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
  fi
fi

echo "Running specs..."
ATOM_PATH=./atom atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm test --path atom/Atom.app/Contents/Resources/app/atom.sh

exit

#!/bin/sh

echo "Downloading latest Atom release..."
curl -s -L "https://atom.io/download/mac" \
  -H 'Accept: application/octet-stream' \
  -o atom.zip

mkdir atom
unzip -q atom.zip -d atom
export PATH=$PWD/atom/Atom.app/Contents/Resources/app/apm/bin:$PATH

echo "Using Atom version:"
ATOM_PATH=./atom ./atom/Atom.app/Contents/Resources/app/atom.sh -v

echo "Downloading package dependencies..."
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm clean
atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm install

if [ -f ./node_modules/.bin/coffeelint ]; then
  if [ -d ./lib ]; then
    echo "Linting package..."
    ./node_modules/.bin/coffeelint lib
    rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
  fi
  if [ -d ./spec ]; then
    echo "Linting package specs..."
    ./node_modules/.bin/coffeelint spec
  fi
fi

echo "Running specs..."
ATOM_PATH=./atom atom/Atom.app/Contents/Resources/app/apm/node_modules/.bin/apm test --path atom/Atom.app/Contents/Resources/app/atom.sh

exit


fix flags with new docs here: http://docs.stackengine.com/installation.html

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/CloudCoreo/stackengine-cluster.git/'


integration: add test for iporinad

integration: add test for iporinad

#!/bin/sh

rlite-ctl ipcp-create xyz.IPCP normal dd.DIF || exit 1
cat > iporinad1.conf << EOF
local       ipor1        dd.DIF
remote      ipor2        dd.DIF       192.168.203.0/30
route       10.9.10.0/24
route       10.9.11.0/24
EOF
cat > iporinad2.conf << EOF
local       ipor2        dd.DIF
remote      ipor1        dd.DIF       192.168.203.0/30
route       10.9.12.0/24
route       10.9.13.0/24
EOF

iporinad -c iporinad1.conf || exit 1 &
iporinad -c iporinad2.conf || exit 1 &
sleep 2
pkill iporinad || exit 1

# Reset to wait for all the flows to go away
rlite-ctl reset

error: pathspec 'tests/integration/0022-ip-over-rina.sh' did not match any file(s) known to git