|
@@ -20,8 +20,6 @@ fw_get () {
|
|
# Ensure the background job is killed if we are
|
|
# Ensure the background job is killed if we are
|
|
kill $!; trap 'kill $!' SIGTERM
|
|
kill $!; trap 'kill $!' SIGTERM
|
|
}
|
|
}
|
|
-# Makes it available in subshells
|
|
|
|
-export -f fw_get
|
|
|
|
|
|
|
|
fw_untar() {
|
|
fw_untar() {
|
|
echo "Running 'tar xf $@'...please wait"
|
|
echo "Running 'tar xf $@'...please wait"
|
|
@@ -31,7 +29,6 @@ fw_untar() {
|
|
# use -f to avoid printing errors if they gave additional arguments
|
|
# use -f to avoid printing errors if they gave additional arguments
|
|
rm -f "$@"
|
|
rm -f "$@"
|
|
}
|
|
}
|
|
-export -f fw_untar
|
|
|
|
|
|
|
|
fw_unzip() {
|
|
fw_unzip() {
|
|
echo "Running 'unzip $@'...please wait"
|
|
echo "Running 'unzip $@'...please wait"
|
|
@@ -40,7 +37,6 @@ fw_unzip() {
|
|
# use -f to avoid printing errors if they gave additional arguments
|
|
# use -f to avoid printing errors if they gave additional arguments
|
|
rm -f "$@"
|
|
rm -f "$@"
|
|
}
|
|
}
|
|
-export -f fw_unzip
|
|
|
|
|
|
|
|
# Download *.deb file and install into IROOT without using sudo
|
|
# Download *.deb file and install into IROOT without using sudo
|
|
# Does not download dependant packages
|
|
# Does not download dependant packages
|
|
@@ -53,7 +49,6 @@ fw_apt_to_iroot() {
|
|
echo "Extracting $1 to $DIR"
|
|
echo "Extracting $1 to $DIR"
|
|
dpkg-deb -x $1*.deb "$IROOT/$DIR" && rm $1*.deb
|
|
dpkg-deb -x $1*.deb "$IROOT/$DIR" && rm $1*.deb
|
|
}
|
|
}
|
|
-export -f
|
|
|
|
|
|
|
|
# Was there an error for the current dependency?
|
|
# Was there an error for the current dependency?
|
|
FW_dep_error=0
|
|
FW_dep_error=0
|
|
@@ -78,7 +73,6 @@ fw_traperror () {
|
|
#echo " Bash source stack : ${bashstack[@]}"
|
|
#echo " Bash source stack : ${bashstack[@]}"
|
|
#echo " Bash line stack : ${linestack[@]}"
|
|
#echo " Bash line stack : ${linestack[@]}"
|
|
}
|
|
}
|
|
-export -f fw_traperror
|
|
|
|
|
|
|
|
# Requires dependencies to come in order e.g. Nimrod before
|
|
# Requires dependencies to come in order e.g. Nimrod before
|
|
# Jester, etc. Users should be know this
|
|
# Jester, etc. Users should be know this
|
|
@@ -153,7 +147,6 @@ fw_depends() {
|
|
|
|
|
|
return $FW_any_errors
|
|
return $FW_any_errors
|
|
}
|
|
}
|
|
-export -f fw_depends
|
|
|
|
|
|
|
|
# Echo's 0 if file or directory exists
|
|
# Echo's 0 if file or directory exists
|
|
# To be used with or || blocks, avoids triggering our ERR
|
|
# To be used with or || blocks, avoids triggering our ERR
|
|
@@ -165,4 +158,3 @@ fw_exists() {
|
|
echo 1
|
|
echo 1
|
|
fi
|
|
fi
|
|
}
|
|
}
|
|
-export -f fw_exists
|
|
|