-#!/bin/bash
+#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
pushd compiler-builtins
git checkout -- .
git checkout 0.1.39
-git apply ../../crate_patches/0001-compiler-builtins-Remove-rotate_left-from-Int.patch
+git apply ../../crate_patches/000*-compiler-builtins-*.patch
popd
echo "Successfully prepared sysroot source for building"