Benoît BURNICHON wrote:
> 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].

I was not aware of this restriction. That's why it is not part of the 
documentation. ;-)

> 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]])

This "guess a version" command is the first thing I remove from a freshly 
created package...

Regards,
Juergen

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
[email protected]

Reply via email to