- bugfix '"'

- def lib-header
This commit is contained in:
6543 2018-04-30 18:12:45 +02:00
parent aecc9d5b9c
commit b5ab4f1ec9
5 changed files with 8 additions and 1 deletions

6
doc/lib-header.txt Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
#remaster lib
[ -d "$LIBDR"] || export LIBDIR="/usr/lib/remaster/"
[ -d "$LIBDR"] || { echo "LIBDR not exist"; exit 1; }

#beginn func

View File

@ -9,12 +9,13 @@
##################################################################################### #####################################################################################
#get base dir #get base dir
rootdir=`echo $0 | rev | cut -d "/" -f 2- | rev`/../../ rootdir=`echo $0 | rev | cut -d "/" -f 2- | rev`/../../
export "rootdir=`readlink -e $rootdir`"" export "rootdir=`readlink -e $rootdir`"


#set functions #set functions
if [ -p "$rootdir/usr/lib/remaster/" ]; then if [ -p "$rootdir/usr/lib/remaster/" ]; then
#source "$rootdir/usr/lib/remaster/" ... #source "$rootdir/usr/lib/remaster/" ...
export PATH="$rootdir/usr/lib/remaster/":$PATH export PATH="$rootdir/usr/lib/remaster/":$PATH
export LIBDIR="$rootdir/usr/lib/remaster/"
else else
echo "ERROR functions not found" echo "ERROR functions not found"
exit 1 exit 1