summaryrefslogtreecommitdiffstats
path: root/scripts/repo-add.sh.in
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-07-07 01:35:32 +0200
committerDan McGee <dan@archlinux.org>2007-07-07 01:35:32 +0200
commita501b72e40062c9e606a787657582d1859c35d35 (patch)
treebea93688780e947a7531c1e8bbb979b1ba917448 /scripts/repo-add.sh.in
parentb5f8a44bebc906bf6a29d30c159802b0c1a7dbb1 (diff)
downloadpacman-a501b72e40062c9e606a787657582d1859c35d35.tar.gz
pacman-a501b72e40062c9e606a787657582d1859c35d35.tar.xz
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/repo-add.sh.in')
-rw-r--r--scripts/repo-add.sh.in33
1 files changed, 14 insertions, 19 deletions
diff --git a/scripts/repo-add.sh.in b/scripts/repo-add.sh.in
index 3f009af8..1df650bd 100644
--- a/scripts/repo-add.sh.in
+++ b/scripts/repo-add.sh.in
@@ -32,29 +32,24 @@ TMP_DIR=""
# print usage instructions
usage() {
- printf "repo-add (pacman) %s\n" "$myver"
- echo
- echo "$(gettext "usage: repo-add <path-to-db> [--force] <package> ...")"
- echo
- echo "$(gettext "repo-add will update a package database by reading a package file.")"
- echo "$(gettext "Multiple packages to add can be specified on the command line.")"
- echo
- echo "$(gettext "The --force flag will add a 'force' entry to the sync database, which")"
- echo "$(gettext "tells pacman to skip its internal version number checking and update")"
- echo "$(gettext "the package regardless.")"
- echo
- echo "$(gettext "Example:")"
- echo "$(gettext " repo-add /path/to/repo.db.tar.gz pacman-3.0.0.pkg.tar.gz")"
- echo
+ printf "repo-add (pacman) %s\n\n" "$myver"
+ printf "$(gettext "Usage: %s <path-to-db> [--force] <package> ...\n\n")" "$0"
+ printf "$(gettext "\
+repo-add will update a package database by reading a package file.\n\
+Multiple packages to add can be specified on the command line.\n\n")"
+ printf "$(gettext "\
+The --force flag will add a 'force' entry to the sync database, which\n\
+tells pacman to skip its internal version number checking and update\n\
+the package regardless.\n\n")"
+ echo "$(gettext "Example: repo-add /path/to/repo.db.tar.gz pacman-3.0.0.pkg.tar.gz")"
}
version() {
printf "repo-add (pacman) %s\n" "$myver"
- printf "Copyright (C) 2006 Aaron Griffin <aaron@archlinux.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) 2006 Aaron Griffin <aaron@archlinux.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")"
}
# return calculated checksum of package