* aaragon wrote on Thu, Jun 04, 2009 at 10:11:22PM CEST:
>
> So I got all my code up and running and now I want to make a file so I can
> use my library in another computer. Now, when I try to make dist-zip, I get:
>
> aara...@~/Documents/workspace/cpputils$make dist-all
> { test ! -d "-cpputils--0.001" || { find "-cpputils--0.001" -type d ! -perm
> -200 -exec chmod u+w {} ';' && rm -fr "-cpputils--0.001"; }; }
> test -d "-cpputils--0.001" || mkdir "-cpputils--0.001"
> mkdir: illegal option -- c
> usage: mkdir [-pv] [-m mode] directory ...
> make: *** [distdir] Error 64
>
> It's trying to make a directory that starts with a hyphen. Is this a bug?
> Can I get around this and indicate that I don't want the filename of the
> directory to start with a hyphen?
You can name the package cpputils rather than -cpputils- (change the
first argument of AC_INIT in configure.ac) or override the tarname only
(add a fourth argument to AC_INIT).
See "info Autoconf 'Initializing configure'".
Cheers,
Ralf