diff options
author | midipix <writeonce@midipix.org> | 2016-12-17 15:36:39 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-12-18 09:06:57 -0500 |
commit | 3acd443a3cd43efca9b663ce0eb437d2540cbfd3 (patch) | |
tree | f820cefb5417ee2cc6c7c7bdfd074a4e83a1eac4 | |
parent | a44a9524642535a1a447ce711d6cea99420d23ad (diff) | |
download | bcparser-3acd443a3cd43efca9b663ce0eb437d2540cbfd3.tar.bz2 bcparser-3acd443a3cd43efca9b663ce0eb437d2540cbfd3.tar.xz |
build system: version.sh: create output directory as needed.
-rwxr-xr-x | sysinfo/version.sh | 1 |
1 files changed, 1 insertions, 0 deletions
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 |