ENGINE-883: test if files are there to diminish annoying pings from git

pull/3/head
Krista Bennett 2 years ago
parent f726fd607c
commit 52df6b71f1

@ -2,5 +2,7 @@
# Commit hash header file - if we don't run this, it won't build.
commit_hash="$(git rev-parse HEAD)"
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
if test -f "templates/commit_hash.h"; then
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
fi

@ -2,5 +2,7 @@
# Commit hash header file - if we don't run this, it won't build.
commit_hash="$(git rev-parse HEAD)"
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
if test -f "templates/commit_hash.h"; then
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
fi

@ -2,5 +2,7 @@
# Commit hash header file - if we don't run this, it won't build.
commit_hash="$(git rev-parse HEAD)"
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
if test -f "templates/commit_hash.h"; then
sed "s/\(PEP_CURRENT_COMMIT_HASH\ =\).*/\1\"$commit_hash\"/" templates/commit_hash.h > src/commit_hash.h
fi

@ -1,3 +1,6 @@
#! /bin/sh
rm src/commit_hash.h
if test -f "src/commit_hash.h"; then
rm src/commit_hash.h
fi

Loading…
Cancel
Save