Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts/gensync.sh.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-06 19:35:32 -0400
committerDan McGee <dan@archlinux.org>2007-07-06 19:35:32 -0400
commita501b72e40062c9e606a787657582d1859c35d35 (patch)
treebea93688780e947a7531c1e8bbb979b1ba917448 /scripts/gensync.sh.in
parentb5f8a44bebc906bf6a29d30c159802b0c1a7dbb1 (diff)
Make paragraph text in scripts single strings
It is much easier for translators to deal with paragraphs as strings rather than by lines. Take all usage and version information and convert it to this format. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/gensync.sh.in')
-rw-r--r--scripts/gensync.sh.in44
1 files changed, 20 insertions, 24 deletions
diff --git a/scripts/gensync.sh.in b/scripts/gensync.sh.in
index ca83c17b..d98915f4 100644
--- a/scripts/gensync.sh.in
+++ b/scripts/gensync.sh.in
@@ -30,35 +30,31 @@ myver='@PACKAGE_VERSION@'
# functions
usage() {
- printf "gensync (pacman) %s\n" "$myver"
- echo
- printf "$(gettext "Usage: %s <root> <destfile> [package_directory]")\n" "$0"
- echo
- echo "$(gettext "gensync will generate a sync database by reading all PKGBUILD files")"
- echo "$(gettext "from <root>. gensync builds the database in a temporary directory")"
- echo "$(gettext "and then compresses it to <destfile>.")"
- echo
- echo "$(gettext "gensync will calculate md5sums of packages in the same directory as")"
- echo "$(gettext "<destfile>, unless an alternate [package_directory] is specified.")"
- echo
- echo "$(gettext "note: The <destfile> name is important. It must be of the form")"
- echo "$(gettext " {treename}.db.tar.gz where {treename} is the name of the custom")"
- echo "$(gettext " package repository you configured in /etc/pacman.conf. The")"
- echo "$(gettext " generated database must reside in the same directory as your")"
- echo "$(gettext " custom packages (also configured in /etc/pacman.conf)")"
- echo
- echo "$(gettext "example: gensync /var/abs/local /home/mypkgs/custom.db.tar.gz")"
- echo
+ printf "gensync (pacman) %s\n\n" "$myver"
+ printf "$(gettext "Usage: %s <root> <destfile> [package_directory]")\n\n" "$0"
+ printf "$(gettext "\
+gensync will generate a sync database by reading all PKGBUILD files\n\
+from <root>. gensync builds the database in a temporary directory\n\
+and then compresses it to <destfile>.\n\n")"
+ printf "$(gettext "\
+gensync will calculate md5sums of packages in the same directory as\n\
+<destfile>, unless an alternate [package_directory] is specified.\n\n")"
+ printf "$(gettext "\
+note: The <destfile> name is important. It must be of the form\n\
+ {treename}.db.tar.gz where {treename} is the name of the custom\n\
+ package repository you configured in /etc/pacman.conf. The\n\
+ generated database must reside in the same directory as your\n\
+ custom packages (also configured in /etc/pacman.conf)\n\n")"
+ echo "$(gettext "Example: gensync /var/abs/local /home/mypkgs/custom.db.tar.gz")"
exit 0
}
version() {
printf "gensync (pacman) %s\n" "$myver"
- printf "Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>.\n"
- echo
- printf "This is free software; see the source for copying conditions.\n"
- printf "There is NO WARRANTY, to the extent permitted by law.\n"
- echo
+ printf "$(gettext "\
+Copyright (C) 2002-2007 Judd Vinet <jvinet@zeroflux.org>.\n\n\
+This is free software; see the source for copying conditions.\n\
+There is NO WARRANTY, to the extent permitted by law.\n")"
}
error () {