summaryrefslogtreecommitdiffstats
path: root/scripts/repo-remove.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-remove.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-remove.sh.in')
-rw-r--r--scripts/repo-remove.sh.in29
1 files changed, 12 insertions, 17 deletions
diff --git a/scripts/repo-remove.sh.in b/scripts/repo-remove.sh.in
index 02021f33..63209728 100644
--- a/scripts/repo-remove.sh.in
+++ b/scripts/repo-remove.sh.in
@@ -3,7 +3,7 @@
# repo-remove - remove a package entry from a given repo database file
# @configure_input@
#
-# Copyright (c) 2007 Dan McGee <dan@archlinux.org>
+# Copyright (c) 2002-2007 by Judd Vinet <jvinet@zeroflux.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -32,26 +32,21 @@ TMP_DIR=""
# print usage instructions
usage() {
- echo "$(gettext "repo-remove %s")" $myver
- echo
- echo "$(gettext "usage: repo-remove <path-to-db> <packagename> ...")"
- echo
- echo "$(gettext "repo-remove will update a package database by removing the package name")"
- echo "$(gettext "specified on the command line from the given repo database. Multiple")"
- echo "$(gettext "packages to remove can be specified on the command line.")"
- echo
- echo "$(gettext "Example:")"
- echo "$(gettext " repo-remove /path/to/repo.db.tar.gz kernel26")"
- echo
+ printf "$(gettext "repo-remove %s\n\n")" $myver
+ printf "$(gettext "usage: %s <path-to-db> <packagename> ...\n\n")" "$0"
+ printf "$(gettext "\
+repo-remove will update a package database by removing the package name\n\
+specified on the command line from the given repo database. Multiple\n\
+packages to remove can be specified on the command line.\n\n")"
+ echo "$(gettext "Example: repo-remove /path/to/repo.db.tar.gz kernel26")"
}
version() {
printf "repo-remove (pacman) %s\n" "$myver"
- printf "Copyright (C) 2007 Dan McGee <dan@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) 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")"
}
# test if a file is a repository DB