From: TimePath Date: Sun, 7 Aug 2016 11:15:46 +0000 (+1000) Subject: Run header checker X-Git-Tag: xonotic-v0.8.2~739 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28f8ad0f5a11e69d2e59bed2aaf25f256197d6dc;p=xonotic%2Fxonotic-data.pk3dir.git Run header checker --- diff --git a/qcsrc/menu/command/all.qc b/qcsrc/menu/command/all.qc index 283cca0c1..2f8df96b6 100644 --- a/qcsrc/menu/command/all.qc +++ b/qcsrc/menu/command/all.qc @@ -1 +1,3 @@ +#include "all.qh" + #include diff --git a/qcsrc/menu/command/all.qh b/qcsrc/menu/command/all.qh new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/menu/command/all.qh @@ -0,0 +1 @@ +#pragma once diff --git a/qcsrc/menu/matrix.qc b/qcsrc/menu/matrix.qc index b0c4ec880..3039b4a7d 100644 --- a/qcsrc/menu/matrix.qc +++ b/qcsrc/menu/matrix.qc @@ -1,3 +1,5 @@ +#include "matrix.qh" + var void MX_Handle(int buf, string ancestor) { string type = json_get(buf, strcat(ancestor, ".type")); diff --git a/qcsrc/menu/matrix.qh b/qcsrc/menu/matrix.qh new file mode 100644 index 000000000..6f70f09be --- /dev/null +++ b/qcsrc/menu/matrix.qh @@ -0,0 +1 @@ +#pragma once diff --git a/qcsrc/tools/headerstyle.sh b/qcsrc/tools/headerstyle.sh index b638927bf..daf20ebf3 100755 --- a/qcsrc/tools/headerstyle.sh +++ b/qcsrc/tools/headerstyle.sh @@ -1,6 +1,6 @@ -#!/bin/bash +#!/usr/bin/env bash set -eu -cd "$(dirname "$0")" +cd ${0%/*} cd .. function startswith() {