source cant use variables (p5-final)
This commit is contained in:
parent
6616478014
commit
c6103a8fb4
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user