Turn checkbashisms into a make target

make_gitrev.sh actually breaks checkbashisms' parser,
which /insists/ that the end-of-line " is actually a string start

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12101
This commit is contained in:
наб
2021-05-22 01:45:40 +02:00
committed by Brian Behlendorf
parent c3ef9f7528
commit f7d7ee0583
7 changed files with 27 additions and 36 deletions
+2 -2
View File
@@ -56,9 +56,9 @@ then
# already exists (in the source)
if [ -f "${top_srcdir}/${GITREV}" ]
then
ZFS_GITREV="$(sed -n \
ZFS_GITREV=$(sed -n \
'1s/^#define[[:blank:]]ZFS_META_GITREV "\([^"]*\)"$/\1/p' \
"${top_srcdir}/${GITREV}")"
"${top_srcdir}/${GITREV}")
fi
elif [ ${dist} = yes ]
then