libimobiledevice / libplist

A library to handle Apple Property List format in binary or XML
https://libimobiledevice.org
GNU Lesser General Public License v2.1
548 stars 304 forks source link

git-version-gen breaks configure #224

Closed tihmstar closed 1 year ago

tihmstar commented 1 year ago

The git-version-gen can print multiple lines in certain circumstances, which due to the usage in https://github.com/libimobiledevice/libplist/blob/master/configure.ac#L5 will result in a broken configure script.

One way to fix the issue is to make sure only one line is ever returned by the script. This can be achieved for example by changing:

printf %s "$VER"

to

VER=$(printf %s "$VER" | head -n1)
printf %s "$VER"
nikias commented 1 year ago

Good catch. Thanks. b8fcc89