Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGiovanni Scafora <linuxmania@gmail.com>2007-11-09 19:43:48 +0100
committerDan McGee <dan@archlinux.org>2007-11-11 09:42:19 -0600
commit5cd6ffda722c79cf4689e559f214bcc27561fa5c (patch)
treef66460c127ed20c2eb488e5bbc1ae870dc1b7e7a /scripts
parent6f5ee2432ccdd0a3bef742938cdd7552bc6a5c32 (diff)
makeworld: gettext support
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makeworld.sh.in53
1 files changed, 29 insertions, 24 deletions
diff --git a/scripts/makeworld.sh.in b/scripts/makeworld.sh.in
index 728e00eb..49b758c6 100644
--- a/scripts/makeworld.sh.in
+++ b/scripts/makeworld.sh.in
@@ -21,45 +21,50 @@
# USA.
#
+# gettext initialization
+export TEXTDOMAIN='pacman'
+export TEXTDOMAINDIR='@localedir@'
+
myver="@PACKAGE_VERSION@"
+BUG_REPORT_EMAIL='@PACKAGE_BUGREPORT@'
toplevel=$(pwd)
usage() {
printf "makeworld (pacman) %s\n" "$myver"
- echo "usage: $0 [options] <destdir> <category> [category] ..."
- echo "options:"
- echo " -b, --builddeps Build missing dependencies from source"
- echo " -B, --noccache Do not use ccache during build"
- echo " -c, --clean Clean up work files after build"
- echo " -C, --cleancache Clean up source files from the cache"
- echo " -d, --nodeps Skip all dependency checks"
- echo " -e, --noextract Do not extract source files (use existing src/ dir)"
- echo " -f, --force Overwrite existing packages"
- echo " -i, --install Install package after successful build"
- echo " -m, --nocolor Disable colorized output messages"
- echo " -h, --help This help"
- echo " -o, --nobuild Download and extract files only"
- echo " -r, --rmdeps Remove installed dependencies after a successful build"
- echo " -s, --syncdeps Install missing dependencies with pacman"
- echo " -S, --usesudo Use sudo when running pacman commands"
+ echo "$(gettext "Usage: %s [options] <destdir> <category> [category] ...")" "$0"
+ echo "$(gettext "Options:")"
+ echo "$(gettext " -b, --builddeps Build missing dependencies from source")"
+ echo "$(gettext " -B, --noccache Do not use ccache during build")"
+ echo "$(gettext " -c, --clean Clean up work files after build")"
+ echo "$(gettext " -C, --cleancache Clean up source files from the cache")"
+ echo "$(gettext " -d, --nodeps Skip all dependency checks")"
+ echo "$(gettext " -e, --noextract Do not extract source files (use existing src/ dir)")"
+ echo "$(gettext " -f, --force Overwrite existing packages")"
+ echo "$(gettext " -i, --install Install package after successful build")"
+ echo "$(gettext " -m, --nocolor Disable colorized output messages")"
+ echo "$(gettext " -h, --help This help")"
+ echo "$(gettext " -o, --nobuild Download and extract files only")"
+ echo "$(gettext " -r, --rmdeps Remove installed dependencies after a successful build")"
+ echo "$(gettext " -s, --syncdeps Install missing dependencies with pacman")"
+ echo "$(gettext " -S, --usesudo Use sudo when running pacman commands")"
echo
- echo "These options can be passed to pacman:"
+ echo "$(gettext "These options can be passed to pacman:")"
echo
- echo " --noconfirm Do not ask for confirmation when resolving dependencies"
- echo " --noprogressbar Do not show a progress bar when downloading files"
+ echo "$(gettext " --noconfirm Do not ask for confirmation when resolving dependencies")"
+ echo "$(gettext " --noprogressbar Do not show a progress bar when downloading files")"
echo
- echo "Where <category> is one or more directory names under the ABS root"
- echo "eg: makeworld -c /packages base lib editors"
+ echo "$(gettext "Where <category> is one or more directory names under the ABS root")"
+ echo "$(gettext "eg: makeworld -c /packages base lib editors")"
echo
- echo "This should be run from the toplevel directory of ABS (usually /var/abs)"
+ echo "$(gettext "This should be run from the toplevel directory of ABS (usually /var/abs)")"
}
version() {
printf "makeworld (pacman) %s\n" "$myver"
- printf "\
+ 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"
+There is NO WARRANTY, to the extent permitted by law.\n")"
}
MAKEPKG_OPTS=