[Kde-extra-gear] cvsExtract patch

Klas Kalass kde-extra-gear@mail.kde.org
Sun, 9 Feb 2003 17:03:25 +0100


--Boundary-02=_SvnR+1uWcqZXk2S
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Description: signed data
Content-Disposition: inline

Am Sonntag, 9. Februar 2003 13:28 schrieb Sebastian Trueg:
> Hy,
>
> I added two things to cvsExtract.sh:
> 1. All available languages in kde-i18n are searched for a translation (fr=
om
> cvs2dist)
> 2. no documentation option

+    -nodoc                    Do not try to get any documentation.
+    -noi18n                   Do not search for any translations.

Some nitpicking: The script adheres to the convention that long optionnames=
=20
are always with two "-" signs, so I would prefer --nodoc and --noi18n.

@@ -184,6 +195,25 @@ APPDIR=3D${APPNAME}
 [ -z "$TARGETDIR" ] && TARGETDIR=3D"${APPDIR}-${APPVERSION}-BUILD"
=20
=20
+# if no languages are specified get the complete list from kde-i18n
+if [ $GETI18N =3D "yes" ]; then
+    if [ -z "$LANGUAGES" ]; then
+       echo "Retrieving complete list of available languages..."
+       case "${RETRIEVAL_METHOD}" in
+           CVS)
+               cvs -z4 -q -d "$CVSROOT" co -P kde-i18n/subdirs > /dev/null=
 2>&1
+               ;;
+           LOCAL)
+               cp  -a ${CVSBASEDIR}/${KDEI18N}/subdirs kde-i18n
+               ;;
+       esac
+       LANGUAGES=3D"$(cat kde-i18n/subdirs)"

Does this really work? looks like make syntax to me...

+       echo "available languages: $LANGUAGES"
+       rm -r kde-i18n
+    fi
+fi

Please do not put actual code like this above the "MAIN" section, but rathe=
r=20
inside. It does not matter code-wise but I think it is easier to maintain i=
f=20
the distinction is kept.

Regards,
  Klas
--Boundary-02=_SvnR+1uWcqZXk2S
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA+RnvSyPp3mvWRmvgRAnNMAJ9voAjVh4nJwaOHE/AGc9AWisA9+QCgvmYO
rh9BwyXyJ4Hu7eygEaK8hCQ=
=HFaG
-----END PGP SIGNATURE-----

--Boundary-02=_SvnR+1uWcqZXk2S--