]> git.donarmstrong.com Git - lilypond.git/commitdiff
CG: Add LILYPOND_BUILD_DIR environment variable, fix issues 2604 and 2524.
authorJohn Mandereau - LilyPond development <john.mandereau@gmail.com>
Wed, 27 Jun 2012 09:42:32 +0000 (11:42 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Fri, 29 Jun 2012 14:40:55 +0000 (16:40 +0200)
Documentation/contributor/administration.itexi
Documentation/contributor/introduction.itexi
Documentation/contributor/release-work.itexi
Documentation/contributor/website-work.itexi

index 3047eba0f41dc384d591c72e5dabb90ec37f53f5..480af18b7f296f2cbec5e1c8f0526724fdae61da 100644 (file)
@@ -7,6 +7,7 @@ don't fit anywhere else.
 
 @menu
 * Meta-policy for this document::
+* Environment variables::
 * Meisters::
 * Patchy::
 * Administrative mailing list::
@@ -78,6 +79,32 @@ Totally disorganized; do whatever the mao you want:
 @end itemize
 
 
+@node Environment variables
+@section Environment variables
+
+Some maintenance scripts and instructions in this guide rely on
+the following environment variables.  They should be predefined in
+LilyDev distribution (see @ref{LilyDev}); if you set up your own
+development environment, you can set them by appending these settings to
+your @file{~/.bashrc} (or whatever defines your default environment
+variables for the user account for LilyPond development), then logging
+out and in (adapt directories to your setup):
+
+@example
+LILYPOND_GIT=~/lilypond-git
+export LILYPOND_GIT
+LILYPOND_BUILD_DIR=~/lilypond-git/build
+export LILYPOND_BUILD_DIR
+@end example
+
+The standard build and install procedure (with @code{autogen.sh},
+@code{configure}, @code{make}, @code{make install}, @code{make doc}
+@dots{}) does not rely on them.
+
+In addition, for working on the website, @code{LILYPOND_WEB_MEDIA_GIT}
+should be set to the repository lilypond-extra, see
+@ref{lilypond-extra}.
+
 
 @node Meisters
 @section Meisters
@@ -179,13 +206,8 @@ Make sure it's where you want it and name it lilypond-git
 (assuming you want to follow the standard naming conventions).
 
 @item
-Create an environment variable called LILYPOND_GIT and make it
-equal to the location of your new git repo.  You can do this by
-editing @file{$HOME/.profile} and adding the line:
-@example
-export LILYPOND_GIT=~/lilypond-git
-@end example
-then logging out and in.
+Create environment variables @var{LILYPOND_GIT} and
+@var{LILYPOND_BUILD_DIR}, see @ref{Environment variables}.
 
 @item
 Run patchy once to set up config files, answer @q{@code{n}} when it
@@ -1070,9 +1092,10 @@ all output will still be written to log files; the console output
 is strictly additional to the log files.
 
 @item
-Logfiles from calling lilypond (as part of lilypond-book) will go
-in the relevant @file{build/out/lybook-db/12/lily-123456.log}
-file.  All other logfiles will go in the @file{build/logfiles/}
+Logfiles from calling lilypond (as part of lilypond-book) will go in
+the relevant
+@file{$LILYPOND_BUILD_DIR/out/lybook-db/12/lily-123456.log} file.  All
+other logfiles will go in the @file{$LILYPOND_BUILD_DIR/logfiles/}
 directory.
 
 A single @code{make doc} will therefore result in hundreds of log
index 0883a1a81603c9f987823905c3a043f261b7bc3d..56b9cb40bebc174e72596f34b628a7196ca06427 100644 (file)
@@ -112,6 +112,10 @@ hosted by GNU savannah.
 @uref{http://git.savannah.gnu.org/gitweb/?p=lilypond.git}
 @end example
 
+@item @strong{environment variables}:
+many maintenance scripts, and many instructions in this guide rely on
+predefined @ref{Environment variables}.
+
 @item @strong{mailing lists}:
 given on @rweb{Contacts}.
 
index aa4c77d4b73bde11b268aa91d827c9c9798d732a..26a8223584e20ce0cd0121f7d04999131028b4a6 100644 (file)
@@ -83,8 +83,8 @@ checkout displays modified files, you might want to run @code{git reset
 git fetch
 git checkout origin/release/unstable
 git merge origin
-make -C /path/to/top-build-dir po-replace
-mv /path/to/top-build-dir/po/lilypond.pot po/
+make -C $LILYPOND_BUILD_DIR po-replace
+mv $LILYPOND_BUILD_DIR/po/lilypond.pot po/
 vi Documentation/web/news-front.itexi Documentation/web/news.itexi
 @end example
 
@@ -315,10 +315,9 @@ Run convert-ly on all files, bump parser minimum version.
 Update lilypond.pot:
 
 @example
-make po-replace
+make -C $LILYPOND_BUILD_DIR po-replace
+mv $LILYPOND_BUILD_DIR/po/lilypond.pot po/
 @end example
-If you run this outside the source tree, move @file{po/lilypond.pot}
-to the source tree.
 
 @item
 Make directories on lilypond.org:
index 33b13464b64bff7296ccb808f1e178169024fef4..3136c1b144ca0864449d8ad3003b65df252dc548 100644 (file)
@@ -76,13 +76,14 @@ before they are used on the server.
 @subheading Building the website (quick local)
 
 Initial setup: make sure that you have the environment variables
-@code{$LILYPOND_GIT} and @code{$LILYPOND_WEB_MEDIA_GIT} set up
-correctly.  For more information, see @ref{Other repositories}.
+@code{$LILYPOND_GIT}, @code{$LILYPOND_BUILD_DIR} and
+@code{$LILYPOND_WEB_MEDIA_GIT} set up correctly.  For more
+information, see @ref{Environment variables}.
 
 Once that is done,
 
 @example
-cd $LILYPOND_GIT/build/
+cd $LILYPOND_BUILD_DIR
 make website
 @end example
 
@@ -360,7 +361,7 @@ scripts/build/website_post.py
 Translations are not included by default in @code{make website}.
 To test your translation, edit the @code{WEB_LANGUAGES =} line in
 @file{python/langdefs.py}.  You will need to copy this updated
-script to @code{build/python/out}.
+script to @code{$LILYPOND_BUILD_DIR/python/out}.
 
 Do not submit a patch to add your language to this file unless
 @code{make website} completes with fewer than 5 warnings.