Browse Source

source cant use variables (p5-final)

pull/19/head
6543 4 years ago
parent
commit
c6103a8fb4
  1. 8
      autogen.sh

8
autogen.sh

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

#config ...
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
sed -i "s/<ROOTDIR>/$1/g" build/usr/lib/remaster/$i/*
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
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/*
sed -i "s#<LIBDIR>#$1#g" build/usr/lib/remaster/$i/*
done
}


Loading…
Cancel
Save