Commit 108a6e3d authored by Fabian Müller's avatar Fabian Müller
Browse files

Extract disable-limiter snippet

parent 06eae2c9
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
#! /bin/bash

set -euo pipefail

cd "${CI_PROJECT_DIR}"

# automatically enable #define DISABLE_LIMITER in options.h, handling both /**/-comment and //-comment
sed -i.bak -e "s/\/\*[[:space:]]*\(#define[[:space:]]*DISABLE_LIMITER\)[[:space:]]*\*\//\1/g" ./lib_com/options.h