diff --git a/gen_git_commit_h.ps1 b/gen_git_commit_h.ps1 deleted file mode 100644 index dadc225cd..000000000 --- a/gen_git_commit_h.ps1 +++ /dev/null @@ -1,9 +0,0 @@ -$commit = try { git rev-parse HEAD } catch { "unknown" } -try { git diff-index --quiet HEAD } catch {} -$dirty = if ($LASTEXITCODE) { "true" } else { "false" } -echo "#pragma once`r`n#define GIT_COMMIT `"$commit`"`r`n#define GIT_DIRTY $dirty" | out-file -encoding ASCII auto/git_info.h.new -if (-not (Test-Path .\auto\git_info.h) -or (Compare-Object $(Get-Content .\auto\git_info.h.new) $(Get-Content .\auto\git_info.h))) { - mv -Force auto/git_info.h.new auto/git_info.h -} else { - rm auto/git_info.h.new -} diff --git a/gen_git_commit_h.sh b/gen_git_commit_h.sh deleted file mode 100755 index bc6bc2d35..000000000 --- a/gen_git_commit_h.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/sh -cd $(dirname $0) -commit="$(git rev-parse HEAD 2> /dev/null)" -commit="${commit:-unknown}" -git diff-index --quiet HEAD 2> /dev/null -if [ $? -ne 0 ] -then - dirty="true" -else - dirty="false" -fi -printf "#pragma once\n#define GIT_COMMIT \"$commit\"\n#define GIT_DIRTY $dirty\n" > auto/git_info.h.new -if cmp -s auto/git_info.h.new auto/git_info.h 2>&1 > /dev/null -then - rm -f auto/git_info.h.new -else - mv -f auto/git_info.h.new auto/git_info.h -fi