Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrens committed Oct 3, 2018
1 parent 4906e5b commit 707c8e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions copy-builtin
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ then
fi

make clean || true
scripts/make_gitrev.sh

rm -rf "$KERNEL_DIR/include/zfs" "$KERNEL_DIR/fs/zfs"
cp --recursive include "$KERNEL_DIR/include/zfs"
Expand Down
2 changes: 2 additions & 0 deletions scripts/make_gitrev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ file=${BASE_DIR}/../include/zfs_gitrev.h
# Set default file contents in case we bail.
#
rm -f "$file"
# shellcheck disable=SC2039
/bin/echo -e "#define\tZFS_META_GITREV \"unknown\"" >>"$file"

#
Expand All @@ -49,4 +50,5 @@ git diff-index --quiet HEAD || exit
rev=$(git describe 2>/dev/null) || exit

rm -f "$file"
# shellcheck disable=SC2039
/bin/echo -e "#define\tZFS_META_GITREV \"${rev}\"" >>"$file"

0 comments on commit 707c8e8

Please sign in to comment.