Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modernize a little autotools #43

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sergiomb2
Copy link

Since aMule are about to have a new version, here is my contribution , autopoint may be replace by a newer intltool, is a more elegant solution .

@gonosztopi
Copy link
Member

The empty files your patch adds are already there in the docs subdir - and should stay there. That's why we have the --foreign switch on automake.

@sergiomb2 sergiomb2 force-pushed the master branch 2 times, most recently from 0b1864d to bc71f47 Compare May 9, 2016 04:11
@sergiomb2 sergiomb2 changed the title Use intltoolize and modernize a little autotools modernize a little autotools (couldn't find how put translations working with intltoolize ...) May 9, 2016
@sergiomb2
Copy link
Author

I had use intltool-update to update po files , use relative paths , but still not fix the issue and using IT_PROG_INTLTOOL we don't have translation and back to AM_GNU_GETTEXT we have translation, anyway we have some improves ...

@gonosztopi
Copy link
Member

I still have complaints... :-)

Change of all source references in translation files - should be done in a separate commit.
Changing "don't" to "dont" - not accepted.
Now where is the 'intl' subdirectory, needed on systems not having GNU gettext?

@sergiomb2
Copy link
Author

Changing "don't" to "dont" - not accepted.

The single quotes doesn't break yours syntax highlighting ? can I use "do not" ?

@gonosztopi
Copy link
Member

gonosztopi commented May 13, 2016

The single quotes doesn't break yours syntax highlighting ? can I use "do not" ?

No, not mine :-) Anyway, I'd rather have a broken syntax highlighting than syntactically wrong messages to the user.

@sergiomb2
Copy link
Author

can I use "do not" ?

@sergiomb2
Copy link
Author

sergiomb2 commented May 13, 2016

 AM_GNU_GETTEXT_VERSION(0.11.5)
+AM_GNU_GETTEXT([external])
+#IT_PROG_INTLTOOL
+#GETTEXT_PACKAGE="amule"
+#AC_SUBST(GETTEXT_PACKAGE)
+#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE",[Translation domain used])

if I use IT_PROG_INTLTOOL and next commands instead AM_GNU_GETTEXT (that is what I want to do ) , it compiles and builds .
But if I use GETTEXT_PACKAGE="AC_PACKAGE_NAME" , find_lang requires use aMule with capital M
if I use GETTEXT_PACKAGE="amule" find_lang amule doesn't complains and in both cases , applications translations doesn't work , have any idea what might be ?
Thanks

@sergiomb2 sergiomb2 force-pushed the master branch 5 times, most recently from f4d7f59 to be22dc8 Compare December 6, 2016 02:23
@sergiomb2 sergiomb2 changed the title modernize a little autotools (couldn't find how put translations working with intltoolize ...) modernize a little autotools Dec 6, 2016
@sergiomb2
Copy link
Author

sergiomb2 commented Dec 6, 2016

Any news?

I think is finish , you got the final PR , after some rounds we just run "autoreconf --install" in autogen.sh , autoreconf will run autopoint, and others autos and will not produce any warning.

TIL that is intltool that is deprecated not gettext , now I have revert intltoollize in others projects 😃

@sergiomb2 sergiomb2 force-pushed the master branch 4 times, most recently from c122a10 to cb4823f Compare December 6, 2016 03:18
@sergiomb2 sergiomb2 force-pushed the master branch 5 times, most recently from a055276 to 677d3d5 Compare February 5, 2018 03:30
@sergiomb2
Copy link
Author

sergiomb2 commented Feb 5, 2018

OK I finished this review , gettext works perfectly , only thing I'm not sure is if you shouldn't move License
ChangeLog , AUTHORS etc to the root directory , seems that is a rule of autotools ...
Best regards,

subdir-objects option to AM_INIT_AUTOMAKE is potentially dangerous and should not be used.

so we still got a lot of warnings

OK instead I added subdir-objects which almost clean all warnings ..

@sergiomb2
Copy link
Author

only thing I'm not sure is if you shouldn't move License
ChangeLog , AUTHORS etc to the root directory , seems that is a rule of autotools ...

I just found in other project that we may use symbol links ...

@sergiomb2 sergiomb2 force-pushed the master branch 2 times, most recently from df86e97 to 23d4541 Compare March 25, 2018 22:35
@sergiomb2
Copy link
Author

sergiomb2 commented Mar 25, 2018

even more simplified , 3 commits only with deleted files, one commit [1] with modified code

[1]
8f5d145

@sergiomb2
Copy link
Author

ping only 8f5d145 have code , the other 3 commit is just deleting files
and renamed: m4/nls.m4 -> m4/mulenfs.m4

@sergiomb2
Copy link
Author

rebased with upstream/master and fixed the divergences

@sergiomb2 sergiomb2 force-pushed the master branch 3 times, most recently from 5298ed1 to c099bab Compare July 1, 2024 12:21
Copy ./AUTHORS ./ChangeLog ./COPYING from docs to root because they are
required required files by autotools

Touch NEWS

Rename m4/nls.m4 to m4/mulenfs.m4 to avoid collisions with real nls.m4

Delete many generated files in m4/, po/ and docs/ABOUT-NLS and also add
these files to .gitignore

Delete docs/license.txt because is equal to COPYING
autoupdate

AC_FUNC_SETVBUF_REVERSED the macro is no longer needed

AC_HELP_STRING is now deprecated but can be replaced with AS_HELP_STRING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants