#!/bin/bash # # Extract an application from KDE svn, including documentation and translations. # # Authors: Michael Buesch # Jeroen Wijnhout # Sebastian Trueg # Aurelien Gateau # Klas Kalass # License: GPL (http://www.gnu.org/) # # # Directory lay-out of packages # Application: # + name-version # + admin # + src # + doc # + translations # + nl # + messages # + doc # + de (etc.) # # If the --notoplevel parameter is used everything under src is put into the root dir # # Translations: # + nl # + messages # + doc # + de (etc.) COPYRIGHT="2005 Michael Buesch 2004-2005 Jeroen Wijnhout 2003-2004 Sebastian Trueg 2002 Aurelien Gateau 2002-2004 Klas Kalass" LICENSE="GNU General Public License v2 or later" SCRIPTNAME="createPackage.sh" SCRIPTVERSION='$Revision$' SCRIPTVERSION="`echo $SCRIPTVERSION | cut -d ' ' -f2`" function showVersion { echo "$SCRIPTNAME revision $SCRIPTVERSION" } function showHelp { showVersion echo -e " Extract an application from KDE svn, including documentation and translations. Copyright $COPYRIGHT License: $LICENSE usage: $0 -ab -a [OPTIONS] These parameters are mandatory: -ab|--app-base Relative (to svnroot) path to the KDE or extragear module. Example: trunk/extragear/utils If you want to checkout from a branch, you might use: branches/foobar/1.2 -a|--app Name of the application to checkout. This is the subdir you want to checkout in --app-base. The following options are available: -d|--svnroot Base URL of the svn repository. svn://anonsvn.kde.org/home/kde is the default. -ib|--i18n-base Path to the i18n translations base. Default: trunk/l10n -is|--i18n-sub Path to the i18n files under the \$i18n-base/\$LANGUAGE/messages directories. Example: extragear-office -ids|--i18n-docsub Path to the i18n docbook files under the \$i18n-base/\$LANGUAGE/docs directories. Example: kdeextragear-2 Default: path of --i18n-sub --admin Path to the /admin/ directory. Default: trunk/KDE/kde-common/admin -b|--builddir Name of the temporary working directory where all files will be put. Default is \"./build\" -av|--appversion Version of the application (only for correct naming of the tar archives). --nodoc Do not try to get any documentation. --noi18n Do not search for any translations. --split Make separate packages for the application and translations. --package [TYPE] Create tarballs (.tar.gz and/or .tar.bz2). You can specify an optional package type: \"gzip\" or \"bzip2\" If no type is given, both types will be generated. --packagedir Place a copy of the packages into TARBALLDIR. --postprocess