hertell / lsyncd

Automatically exported from code.google.com/p/lsyncd
GNU General Public License v2.0
0 stars 0 forks source link

--docdir does not change exampledir accordingly #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Configure with ./configure --docdir=/usr/local/share/doc/lsyncd-2.0.4
2. make
3. sudo make install

What is the expected output? What do you see instead?
Expected: the Lua examples should go to /usr/local/share/doc/lsyncd-2.0.4; 
instead they go to /usr/local/share/doc/lsyncd/

What version of the product are you using? On what operating system?
Version 2.0.4 on Fedora 15.

Please provide any additional information below.
Changing @PACKAGE@ to @PACKAGE@-@VERSION@ for "exampledir" in Makefile.am and 
Makefile.in solves the problem in _MY_ case.  Generally, I think, exampledir 
should be the same as docdir, and an option should be given (to the configure 
script, say --exampledir) to change exampledir to something else.

Original issue reported on code.google.com by raghu.v....@gmail.com on 6 Jul 2011 at 5:13

GoogleCodeExporter commented 9 years ago
Ok, lets just put it into the doc dir as you suggested. I don't know enough of 
autoconf to make --exampledir as another option.

axel@prospectionist:~/lsyncd$ svn diff
Index: Makefile.am
===================================================================
--- Makefile.am (revision 573)
+++ Makefile.am (working copy)
@@ -11,7 +11,7 @@
 #endif

 lsyncd_LDADD = $(LUA_LIBS)
-exampledir = $(datarootdir)/doc/@PACKAGE@
+exampledir = $(docdir)/
 dist_example_DATA = \
        examples/lbash.lua \
        examples/lecho.lua \

Original comment by axk...@gmail.com on 6 Jul 2011 at 6:02

GoogleCodeExporter commented 9 years ago
Thank you sir, I'm a happy camper:-)

Original comment by raghu.v....@gmail.com on 7 Jul 2011 at 11:48

GoogleCodeExporter commented 9 years ago
commited for 2.0.5

Original comment by axk...@gmail.com on 18 Aug 2011 at 9:09