#!/bin/bash

PWD="`pwd`"

export PATH="${JAVA_HOME}/bin:${PATH}:${PWD}/depot_tools"

export CC=gcc
export CXX=g++

cd chromium-93.0.4577.82

gn args out/Default --list > ../args.list

if [ -f out/Default/args.gn ];then
 mv -f out/Default/args.gn out/Default/args.gnBAK
fi
cp -f ../args.gn out/Default/args.gn

#this will check args are ok...
#brings up mp text editor, just save and exit...
gn args out/Default
if [ $? -ne 0 ];then
 echo "ERROR: args error"
fi
###end###
