From b5f8a44bebc906bf6a29d30c159802b0c1a7dbb1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 6 Jul 2007 18:43:24 -0400 Subject: Move scripts from *.in to *.sh.in so gettext can determine type If we move the scripts from *.in to *.sh.in and *.py.in, gettext can pull the required strings to translate a whole lot easier. Do this. Signed-off-by: Dan McGee --- scripts/updatesync.sh.in | 161 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 scripts/updatesync.sh.in (limited to 'scripts/updatesync.sh.in') diff --git a/scripts/updatesync.sh.in b/scripts/updatesync.sh.in new file mode 100644 index 00000000..1526e285 --- /dev/null +++ b/scripts/updatesync.sh.in @@ -0,0 +1,161 @@ +#!/bin/bash +# +# updatesync +# @configure_input@ +# +# Copyright (c) 2004 by Jason Chu +# Derived from gensync (c) 2002-2006 Judd Vinet +# +# 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 +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, +# USA. +# + +# gettext initialization +export TEXTDOMAIN='pacman' +export TEXTDOMAINDIR='@localedir@' + +myver='@PACKAGE_VERSION@' + +# functions + +usage() { + printf "updatesync (pacman) %s\n" "$myver" + echo + printf "$(gettext "Usage: %s