From 0b3d1982aa8c6df48c3272cb9e87e5849b1b53ce Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 17 Dec 2016 15:36:39 -0500 Subject: build system: version.sh: create output directory as needed. --- sysinfo/version.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'sysinfo/version.sh') diff --git a/sysinfo/version.sh b/sysinfo/version.sh index 8157765..0b948bc 100755 --- a/sysinfo/version.sh +++ b/sysinfo/version.sh @@ -55,6 +55,7 @@ gitver=`git rev-parse --verify HEAD 2>/dev/null` || gitver="unknown" macro=`echo "$prefix"_GIT_VERSION | tr '[:lower:]' '[:upper:]'` cd "$workdir" || exit 2 +mkdir -p `dirname "$output"` || exit 2 printf "#define $macro\t\"$gitver\"\n" > "$output" # all done -- cgit v1.2.3