Files
BPI-CM9-Linux/aml-comp/vendor/amlogic/dvb/rule/gen_makefile.sh
T
2026-08-24 10:03:24 +08:00

19 lines
281 B
Bash
Executable File

#!/bin/bash
if [ ${BASE} = "." ]; then
BASE=".."
else
BASE="../${BASE}"
fi
DIR=`dirname $DIR`
while [ $DIR != "." ]; do
BASE=${BASE}/..
DIR=`dirname $DIR`
done
echo "s+@BASE@+${BASE}+" > ${ROOTDIR}/build/gen.sed
sed -f ${ROOTDIR}/build/gen.sed ${ROOTDIR}/rule/Makefile.in