source cant use variables (p5-final)

This commit is contained in:
6543 2018-05-07 01:58:55 +02:00
parent 6616478014
commit c6103a8fb4

View File

@ -30,15 +30,15 @@ function build() {


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