- bugfix '"'
- def lib-header
This commit is contained in:
parent
aecc9d5b9c
commit
b5ab4f1ec9
6
doc/lib-header.txt
Normal file
6
doc/lib-header.txt
Normal 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
|
@ -9,12 +9,13 @@
|
||||
#####################################################################################
|
||||
#get base dir
|
||||
rootdir=`echo $0 | rev | cut -d "/" -f 2- | rev`/../../
|
||||
export "rootdir=`readlink -e $rootdir`""
|
||||
export "rootdir=`readlink -e $rootdir`"
|
||||
|
||||
#set functions
|
||||
if [ -p "$rootdir/usr/lib/remaster/" ]; then
|
||||
#source "$rootdir/usr/lib/remaster/" ...
|
||||
export PATH="$rootdir/usr/lib/remaster/":$PATH
|
||||
export LIBDIR="$rootdir/usr/lib/remaster/"
|
||||
else
|
||||
echo "ERROR functions not found"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user