#!/bin/bash
#run this script if need to create a new project tarball.

VER='93.0.4577.82'
REV='7'
OSARCH='amd64'
TOPSFS="chromium_${VER}-${REV}_${OSARCH}"
PROJDIR="chromium-project-${VER}-${REV}"

if [ -d "../${PROJDIR}" ];then
 mv -f ../${PROJDIR} ../${PROJDIR}BAK
fi

mkdir ../${PROJDIR}

IN='1download-chromium
2download-debian-sysroot
3setup
4args
5build
6package
apply-oe-patches
apply-patches
apply-ungoogled-patches
args.gn
args.list
chromium.appdata.xml
chromium.png
create-project-tarball
depot_tools
libs-inbuilt-2-system
oe-chromium
patches-gentoo
patchset
pdfium-95.0.4638.10.tar.gz
ungoogled-patches
xtra-notes'

for aIN in $IN
do
 [ "$aIN" == "" ] && continue
 if [ -e "$aIN" ];then
  echo -n '.'
  cp -a ${aIN} ../${PROJDIR}/
  sync
 fi
done
echo

cd ..
dir2tgz ${PROJDIR}
sync
echo "../${PROJDIR}.tar.gz created."
###end###
