blob: e1bdc3f285945e0ea357929c7176389956697544 [file] [log] [blame]
Ivan Lozanocc7d3432020-10-02 09:42:18 -04001#!/bin/sh
2# Applies patches from the patches/ directory to newly uploaded toolchains.
3# Assumes patches are ordered numerically in the order they should be applied.
4
5PATCHES=patches/*
6
7if [ $# -eq 0 ]; then
8 echo Usage: $0 [path_to_patch]
9 echo Example: $0 1.46.0
10 exit 1
11fi
12
13echo Applying patches to $1
14for patch in $PATCHES
15do
16 echo ----- Applying $patch
17 patch -p3 -d $1 < $patch
18done