@@ -46,7 +46,7 @@ Invoke ". build/envsetup.sh" from your shell to add the following functions to y
4646
4747EOF
4848
49- __print_lineage_functions_help
49+ __print_aicp_functions_help
5050
5151cat << EOF
5252
5959 local T=$( gettop)
6060 local A=" "
6161 local i
62- for i in ` cat $T /build/envsetup.sh $T /vendor/lineage /build/envsetup.sh | sed -n " /^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p" | sort | uniq` ; do
62+ for i in ` cat $T /build/envsetup.sh $T /vendor/aicp /build/envsetup.sh | sed -n " /^[[:blank:]]*function /s/function \([a-z_]*\).*/\1/p" | sort | uniq` ; do
6363 A=" $A $i "
6464 done
6565 echo $A
@@ -70,8 +70,8 @@ function build_build_var_cache()
7070{
7171 local T=$( gettop)
7272 # Grep out the variable names from the script.
73- cached_vars=(` cat $T /build/envsetup.sh $T /vendor/lineage /build/envsetup.sh | tr ' ()' ' ' | awk ' {for(i=1;i<=NF;i++) if($i~/get_build_var/) print $(i+1)}' | sort -u | tr ' \n' ' ' ` )
74- cached_abs_vars=(` cat $T /build/envsetup.sh $T /vendor/lineage /build/envsetup.sh | tr ' ()' ' ' | awk ' {for(i=1;i<=NF;i++) if($i~/get_abs_build_var/) print $(i+1)}' | sort -u | tr ' \n' ' ' ` )
73+ cached_vars=(` cat $T /build/envsetup.sh $T /vendor/aicp /build/envsetup.sh | tr ' ()' ' ' | awk ' {for(i=1;i<=NF;i++) if($i~/get_build_var/) print $(i+1)}' | sort -u | tr ' \n' ' ' ` )
74+ cached_abs_vars=(` cat $T /build/envsetup.sh $T /vendor/aicp /build/envsetup.sh | tr ' ()' ' ' | awk ' {for(i=1;i<=NF;i++) if($i~/get_abs_build_var/) print $(i+1)}' | sort -u | tr ' \n' ' ' ` )
7575 # Call the build system to dump the "<val>=<value>" pairs as a shell script.
7676 build_dicts_script=` \b uiltin cd $T ; build/soong/soong_ui.bash --dumpvars-mode \
7777 --vars=" ${cached_vars[*]} " \
@@ -153,12 +153,12 @@ function check_product()
153153 echo " Couldn't locate the top of the tree. Try setting TOP." >&2
154154 return
155155 fi
156- if (echo -n $1 | grep -q -e " ^lineage_ " ) ; then
157- LINEAGE_BUILD =$( echo -n $1 | sed -e ' s/^lineage_ //g' )
156+ if (echo -n $1 | grep -q -e " ^aicp_ " ) ; then
157+ AICP_BUILD =$( echo -n $1 | sed -e ' s/^aicp_ //g' )
158158 else
159- LINEAGE_BUILD =
159+ AICP_BUILD =
160160 fi
161- export LINEAGE_BUILD
161+ export AICP_BUILD
162162
163163 TARGET_PRODUCT=$1 \
164164 TARGET_BUILD_VARIANT= \
@@ -772,13 +772,13 @@ function lunch()
772772 # if we can't find a product, try to grab it off the LineageOS GitHub
773773 T=$( gettop)
774774 cd $T > /dev/null
775- vendor/lineage /build/tools/roomservice.py $product
775+ vendor/aicp /build/tools/roomservice.py $product
776776 cd - > /dev/null
777777 check_product $product
778778 else
779779 T=$( gettop)
780780 cd $T > /dev/null
781- vendor/lineage /build/tools/roomservice.py $product true
781+ vendor/aicp /build/tools/roomservice.py $product true
782782 cd - > /dev/null
783783 fi
784784
@@ -2004,4 +2004,4 @@ addcompletions
20042004
20052005export ANDROID_BUILD_TOP=$( gettop)
20062006
2007- . $ANDROID_BUILD_TOP /vendor/lineage /build/envsetup.sh
2007+ . $ANDROID_BUILD_TOP /vendor/aicp /build/envsetup.sh
0 commit comments