#!/bin/bash printf "\n\n------------------------------ FINAL PREBUILD CONFIGURATION ---------------------------------\n"; # Setup Script Variables SOURCE_CODE_FOLDER=$1; CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../../)} _COMMON_REPO='https://gitlab.com/librewolf-community/browser/common.git'; _MOZBUILD=$SOURCE_CODE_FOLDER/../mozbuild mkdir -p ${_MOZBUILD} # Copy Source Code Changes to Source Code printf "\nCopying branding and source code changes to firefox source code\n"; git clone $_COMMON_REPO common; cp -r common/source_files/* $SOURCE_CODE_FOLDER/; rm -rf common; cd $SOURCE_CODE_FOLDER cat >../mozconfig <>../mozconfig <