summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Youngman <jay@gnu.org>2011-05-31 10:26:08 +0100
committerJames Youngman <jay@gnu.org>2011-05-31 10:26:35 +0100
commitfab81d4607cdc1f332808502e695cc7fa59ce764 (patch)
tree5e0cf94a76066384063d821dc0fb162a873dcce7
parentd09450a94c55b85a6ede44938b03d4968681c39a (diff)
downloadfindutils-fab81d4607cdc1f332808502e695cc7fa59ce764.tar.gz
Minor fixes in import-gnulib.sh.
* import-gnulib.sh (fixmsg): Fix punctuation in the commands given for installing the changelog driver. (usage): Explain what the -a option does. (run_gnulib_tool): delete broken symlinks in the output directory, not the gnulib source. (check_merge_driver): fix the path to the ChangeLog merge driver source.
-rw-r--r--ChangeLog11
-rwxr-xr-ximport-gnulib.sh13
2 files changed, 19 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 4372fc5f..4b791e88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2011-05-31 James Youngman <jay@gnu.org>
+
+ Minor fixes in import-gnulib.sh.
+ * import-gnulib.sh (fixmsg): Fix punctuation in the commands given
+ for installing the changelog driver.
+ (usage): Explain what the -a option does.
+ (run_gnulib_tool): delete broken symlinks in the output directory,
+ not the gnulib source.
+ (check_merge_driver): fix the path to the ChangeLog merge driver
+ source.
+
2011-05-30 James Youngman <jay@gnu.org>
Manage gnulib as a git submodule.
diff --git a/import-gnulib.sh b/import-gnulib.sh
index 1f7d8bd1..cf4f8f0e 100755
--- a/import-gnulib.sh
+++ b/import-gnulib.sh
@@ -44,7 +44,7 @@ original_cmd_line_args="$@"
usage() {
cat >&2 <<EOF
-usage: $0 [-d gnulib-directory]
+usage: $0 [-d gnulib-directory] [-a]
The default behaviour is to check out the Gnulib code via anonymous
CVS (or update it if there is a version already checked out). The
@@ -53,6 +53,9 @@ the configuration file $configfile.
If you wish to work with a different version of gnulib, use the -d option
to specify the directory containing the gnulib code.
+
+The -a option skips the import of the gnulib code, and just generates
+the output files (for example 'configure').
EOF
}
@@ -128,7 +131,7 @@ run_gnulib_tool() {
# gnulib-tool does not remove broken symlinks leftover from previous runs;
# this assumes GNU find, but should be a safe no-op if it is not
- find -L gnulib -lname '*' -delete 2>/dev/null || :
+ find -L "${gldest}" -lname '*' -delete 2>/dev/null || :
}
rehack() {
@@ -239,14 +242,14 @@ check_merge_driver() {
We recommend that you use a git merge driver for the ChangeLog file.
This simplifies the task of merging branches.
-Please see the README section in gnulib-git/gnulib/lib/git-merge-changelog.c
+Please see the README section in gnulib/gnulib/lib/git-merge-changelog.c
If you've read that and don't want to use it, just set the environment variable
DO_NOT_WANT_CHANGELOG_DRIVER.
Example:
git config merge.merge-changelog.name 'GNU-style ChangeLog merge driver'
- git config merge.merge-changelog.driver /usr/local/bin/git-merge-changelog %O %A %B
+ git config merge.merge-changelog.driver '/usr/local/bin/git-merge-changelog %O %A %B'
echo 'ChangeLog merge=merge-changelog' >> .gitattributes
"
if [ -z "$DO_NOT_WANT_CHANGELOG_DRIVER" ] ; then
@@ -325,7 +328,7 @@ main() {
done
# We need the config file to tell us which modules
- # to use, even if we don't want to know the CVS version.
+ # to use, even if we don't want to know the gnulib version.
. $configfile || exit 1
## If -d was not given, do update