source cant use variables (p3)

pull/19/head
6543 4 years ago
parent b6eb652c50
commit 1aff83904c
  1. 27
      autogen.sh
  2. 2
      src/remaster.sh

@ -35,6 +35,33 @@ function build() {

}

function set_rootdir() {
sed -i "s/<ROOTDIR>/$1/g" build/usr/bin/remaster
for i in proj func mods; do
sed -i "s/<ROOTDIR>/$1/g" build/usr/lib/remaster/$i/*
done
}
function set_libdir() {
sed -i "s/<LIBDIR>/$1/g" build/usr/bin/remaster
for i in proj func mods; do
sed -i "s/<LIBDIR>/$1/g" build/usr/lib/remaster/$i/*
done
}

function debug() {
clean
build
set_rootdir "`pwd`/build"
set_libdir "`pwd`/build/usr/lib/remaster"
}

function install() {
clean
build
set_rootdir ""
set_libdir "/usr/lib/remaster"
#cp -f -r build/* /
}

case "$1" in
install)

@ -10,7 +10,7 @@

#set functions
[ -d "<LIBDIR>" ] || {
echo "ERROR functions not found"
echo "ERROR Librarys not found"
exit 1
}


Loading…
Cancel
Save