Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

moved bsf into own repo

Signed-off-by: Andrwe Lord Weber <github@andrwe.org>
  • Loading branch information...
commit acef6549c865175967178fe1a51813f4367a079d 1 parent 6c873e1
@Andrwe authored
Showing with 0 additions and 83 deletions.
  1. +0 −63 bsf/bsf.sh
  2. +0 −4 bsf/debug.sh
  3. +0 −12 bsf/help.sh
  4. +0 −4 bsf/test.sh
View
63 bsf/bsf.sh
@@ -1,63 +0,0 @@
-#!/bin/bash
-#
-######################################################################
-#
-# Author: Andrwe Lord Weber
-# Mail: lord-weber-andrwe <at> andrwe <dot> org
-# Version: 0.1
-# URL: http://andrwe.dyndns.org/doku.php/scripting/bash/bsf
-#
-##################
-#
-# Sumary:
-# Framework for bash scripting providing core
-# function used in many scripts
-#
-######################################################################
-
-######################################################################
-#
-# TODO:
-# - implement:
-# log
-# debug
-# wget (auto-nocheck)
-# module based include
-# dependency checking
-# trap (trapstart, trapstop, Parameter: "command","signals")
-# escaping
-# comments
-# usage (-h, -?)
-# help-module (longhelp, shorthelp)
-# parameter function (:-seperated list of parameters for module eg. log:syslog:serveraddress:port; - & :: = skip option)
-# PID-management
-# - rules:
-# Knowledge (available functions, parameters, ...) about module has only the module itself
-#
-######################################################################
-
-COREPATH="$(readlink -f $0)"
-BSFPATH="${COREPATH%/*}"
-CONFIGPATH="${BSFPATH}/bsf.config"
-
-while getopts ":h:?:" opt
-do
- case "${opt}" in
- "h")
- if [ -z "${OPTARGS}" ]
- then
- for module in "${BSFPATH}/"*
- do
- echo ${module}
- done
- else
- fi
- ;;
- esac
-done
-
-
-for module in $@
-do
- source "${BSFPATH}/${module}.sh"
-done
View
4 bsf/debug.sh
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-echo DEBUG
-bla="blub"
View
12 bsf/help.sh
@@ -1,12 +0,0 @@
-#!/bin/bash
-
-longhelp
-shorthelp
-
-
-longhelp option=function=needarguments(true|false) option2=function2=needarguments(true|false)
-needarguments=empty -> false
-eg.: longhelp foo=bar=true bla=blub
-
-shorthelp option=function=needarguments(true|false) option2=function2=needarguments(true|false)
-needarguments=empty -> false
View
4 bsf/test.sh
@@ -1,4 +0,0 @@
-source bsf.sh debug
-
-echo ${BSFPATH}
-echo $bla

0 comments on commit acef654

Please sign in to comment.
Something went wrong with that request. Please try again.