Hi all,
When creating a new package using autotools, ptxdist asks for a revision number.
I gave some revision versions like 0.0.0.
I did not find anywhere in the documentation (ptxdist guru) that the version
should have a format like [0-9]*-[0-9].
Then, the first lines of configure.ac does not detect the proper version number
but take the whole directory name instead:
AC_PREREQ(2.59)
esyscmd([echo "define(myversion, $(dir=$(basename $(pwd)); if test
\"${dir%%-trunk}\" != \"$dir\"; then echo 99999999-9; else
prefix=${dir%%-[0-9]*-[0-9]}; echo ${dir##$prefix-}; fi))"])
AC_INIT([@name@], myversion, [[email protected]])
That is not a big problem but when you use the autotools to generate a source
package with make dist, the filenames and directories get corrupted (of the
form $packagename-$packagename-$version.tar.bz2 instead of
$packagename-$version.tar.bz2)
Regards,
Ben
--
ptxdist mailing list
[email protected]