diff options
author | kientzle <kientzle@FreeBSD.org> | 2007-07-07 16:55:42 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2007-07-07 16:55:42 +0000 |
commit | d552b08a5de5329d2370b4bf836db8141f8a3658 (patch) | |
tree | 95fdf8ef84bf1e993c3ee644eafbc7fd00977d24 /lib | |
parent | a78856a25adea9c313f58c5948c157421a7089f6 (diff) | |
download | FreeBSD-src-d552b08a5de5329d2370b4bf836db8141f8a3658.zip FreeBSD-src-d552b08a5de5329d2370b4bf836db8141f8a3658.tar.gz |
Fix installworld: /usr/bin/printf isn't available then,
so use awk's printf for the formatting here instead.
Pointy hat: Yours Truly
Approved by: re
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libarchive/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile index 3d041de..4203ba7 100644 --- a/lib/libarchive/Makefile +++ b/lib/libarchive/Makefile @@ -15,7 +15,9 @@ ARCHIVE_API_MAJOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/\..*//' ARCHIVE_API_MINOR!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/[0-9]*\.//' -e 's/\..*//' ARCHIVE_API_REV!= echo ${VERSION} | sed -e 's/[^0-9]/./g' -e 's/.*\.//' -ARCHIVE_VERSION_STAMP!= printf "%d%03d%03d" ${ARCHIVE_API_MAJOR} ${ARCHIVE_API_MINOR} ${ARCHIVE_API_REV} +# Can't use /usr/bin/printf to format the version stamp here, because +# that's not available during installworld. Fortunately, awk is. +ARCHIVE_VERSION_STAMP!= echo ${ARCHIVE_API_MAJOR} ${ARCHIVE_API_MINOR} ${ARCHIVE_API_REV} | awk '{printf("%d%03d%03d",$$1,$$2,$$3)}' # FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system. # It has no real relation to the version number above. |