Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions FAST.lib
Original file line number Diff line number Diff line change
@@ -1,32 +1,42 @@
#!/bin/bash
#
############################################## FAST Library ##############################################
########################### FAST - Forest's Accessible Shell Toolkit ##############################
#
# Purpose: A functional library for resolving dysfunctional systems
# Purpose: A menu driven Application Installer, System Tuner and Problem Solver.
# License: MIT
# Author: Forest Baker | forestsbaker | FSB -f
# Copyright 2015 Forest Baker
#
# Version: 1.0
# Date: 06/23/15
# Copyright 2015 Forest Baker
#
############################################## FAST Library ###############################################
############################################## FAST ###############################################
#
###
# Check some dependencies first
###

[ -f ./FAST*.* ] && clear || exit 1
[ -f ./Library_Sections/FAST*.lib ] && "Checking Dependencies" || { echo "Missing Library Sections";exit 1; }
[ -f ./Library_Sections/FAST_Here_Documents.lib ] && echo || { echo "FAST Library Section - Here Documents - is missing";exit 1; }
[ -r ./Library_Sections/FAST_Here_Documents.lib ] && . ./Library_Sections/FAST_Here_Documents.lib || { echo "FAST Library Section - Here Documents - is unreadable";exit 1; }
[ -f ./Library_Sections/FAST_Text_Format.lib ] && echo || { echo "FAST Library Section - Text Formatting - is missing";exit 1; }
[ -r ./Library_Sections/FAST_Text_Format.lib ] && . ./Library_Sections/FAST_Text_Format.lib || { echo "FAST Library Section - Text Formatting - is unreadable";exit 1; }
#[ -f ./Library_Sections/FAST*.lib ] && "Checking Dependencies" || { echo "Missing Library Sections";exit 1; }
#[ -f ./Library_Sections/FAST_Here_Documents.lib ] && echo || { echo "FAST Library Section - Here Documents - is missing";exit 1; }
#[ -r ./Library_Sections/FAST_Here_Documents.lib ] && . ./Library_Sections/FAST_Here_Documents.lib || { echo "FAST Library Section - Here Documents - is unreadable";exit 1; }

###
# Create a Temporary Workshop
# Create GLOBAL_VARIABLES
# Unpack the Library into the Workshop
###

# printf %s\n "Creating Global Variables ... "

###

###

readonly WORKSHOP=$(mktemp -d $HOME/workshop.XXXXXX)
rm -f $WORKSHOP/*
tar -jf ./Tool.box

printf %s\n "Creating Global Variables ... "
readonly LIBRARY_NAME=$(basename $0)
readonly LIBRARY_CWD=$(readlink -m $(dirname $0))
readonly LIBRARY_ARGS="$@"
Expand Down