========================
mkdir -p ~/android/lineage
cd ~/android/lineage
repo init -u git://github.com/LineageOS/android.git -b lineage-15.1
mkdir -p .repo/local_manifests
curl https://raw.githubusercontent.com/lineage-o-x2/local_manifests/lineage-15.1/local_manifest.xml > .repo/local_manifests/my_manifest.xml
repo sync
mkdir -p .repo/local_manifests
curl https://raw.githubusercontent.com/lineage-o-x2/local_manifests/lineage-15.1/local_manifest.xml > .repo/local_manifests/my_manifest.xml
repo sync
cd /path/to/lineage
curl https://raw.githubusercontent.com/lineage-o-x2/local_manifests/lineage-15.1/clean_x2_build.sh > clean_x2_build.sh
curl https://raw.githubusercontent.com/lineage-o-x2/local_manifests/lineage-15.1/dirty_x2_build.sh > dirty_x2_build.sh
. clean_x2_build.sh // for clean builds
. dirty_x2_build.sh // for dirty builds
I made these modified scripts for convenience plus logs terminal output to files for easy scrolling later in your favorite text editor.