summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2010-08-15 15:21:14 +0200
committerMartin Väth <martin@mvath.de>2015-10-11 10:45:56 +0200
commit6fd9ff2bb95ad5d978c5d85124c22fffb3a23425 (patch)
tree2b048d516a7980e74f37fda5d5e20abd1938a531 /eclass
parentBump some mozilla plugins (diff)
downloadmv-6fd9ff2bb95ad5d978c5d85124c22fffb3a23425.tar.gz
mv-6fd9ff2bb95ad5d978c5d85124c22fffb3a23425.tar.bz2
mv-6fd9ff2bb95ad5d978c5d85124c22fffb3a23425.zip
Write shell function braces without space
Diffstat (limited to 'eclass')
-rw-r--r--eclass/monotone.eclass6
-rw-r--r--eclass/mv_mozextension.eclass18
2 files changed, 12 insertions, 12 deletions
diff --git a/eclass/monotone.eclass b/eclass/monotone.eclass
index 7dc2df79..ae851429 100644
--- a/eclass/monotone.eclass
+++ b/eclass/monotone.eclass
@@ -98,7 +98,7 @@ DESCRIPTION="Based on the ${ECLASS} eclass"
# repo_uri - a repository URI. If empty defaults to EMTN_REPO_URI.
# glob - The glob for URI. If empty defaults to EMTN_GLOB.
# db - the database filename. If empty defaults to EMTN_DB.
-monotone_fetch () {
+monotone_fetch() {
local repo_uri db db_full
if [ ${#} -ge 1 ]
then repo_uri=${1:-"${EMTN_REPO_URI}"}
@@ -152,7 +152,7 @@ monotone_fetch () {
# revisionargs - Args for the revision to checkout. If empty defaults to
# EMTN_REVISIONARGS.
# The special value "head" means to use the first head.
-monotone_co () {
+monotone_co() {
local db modulepath moduledir r
if [ ${#} -ge 1 ]
then db=${1:-"${EMTN_DB}"}
@@ -195,7 +195,7 @@ monotone_co () {
# @DESCRIPTION:
# Call this when all modules are checked out: Removes the local database.
# The argument db defaults to EMTN_DB.
-monotone_finish () {
+monotone_finish() {
if [ ${#} -ge 1 ]
then db=${1:-"${EMTN_DB}"}
shift
diff --git a/eclass/mv_mozextension.eclass b/eclass/mv_mozextension.eclass
index e1bd11f5..050d1057 100644
--- a/eclass/mv_mozextension.eclass
+++ b/eclass/mv_mozextension.eclass
@@ -73,7 +73,7 @@ ${RDEPEND}"
[ "${MV_MOZ_EXTDIR}" = "*" ] || IUSE="copy_extensions symlink_extensions"
-mv_mozextension_src_unpack () {
+mv_mozextension_src_unpack() {
local i
if [ -z "${FILENAME}" ]
then for i in ${SRC_URI}
@@ -87,14 +87,14 @@ EXPORT_FUNCTIONS src_unpack
declare -a MV_MOZ_INS MV_MOZ_PKG MV_MOZ_CPY MV_MOZ_DIR
-mv_mozextension_install () {
+mv_mozextension_install() {
local MOZILLA_EXTENSIONS_DIRECTORY
MOZILLA_EXTENSIONS_DIRECTORY="${1}"
MV_MOZ_INS=()
xpi_install_dirs
}
-mv_mozextension_calc () {
+mv_mozextension_calc() {
local v
case "${MV_MOZ_MOZILLAS}" in
${1}) false;;
@@ -104,7 +104,7 @@ mv_mozextension_calc () {
MV_MOZ_DIR+=("${3}")
}
-mv_mozextension_src_install () {
+mv_mozextension_src_install() {
local b d e i j k l s
MV_MOZ_PKG=()
MV_MOZ_DIR=()
@@ -145,7 +145,7 @@ mv_mozextension_src_install () {
done
}
-mv_mozextension_pkg_preinst () {
+mv_mozextension_pkg_preinst() {
local i j
einfo "checking for switching between dirs and symlinks"
for i in "${MV_MOZ_SYM[@]}"
@@ -181,7 +181,7 @@ mv_mozextension_pkg_preinst () {
done
}
-mv_mozextension_pkg_postinst () {
+mv_mozextension_pkg_postinst() {
local i
[ "${#MV_MOZ_PKG[@]}" -ge 1 ] || die "no supported mozilla is installed"
elog "${CATEGORY}/${PN} has been installed for the following packages:"
@@ -201,7 +201,7 @@ if [ -n "${MV_MOZ_MOZILLAS}" ]
then EXPORT_FUNCTIONS src_install pkg_preinst pkg_postinst
fi
-xpi_unpack () {
+xpi_unpack() {
local xpi srcdir
# Not gonna use ${A} as we are looking for a specific option being passed to function
@@ -239,7 +239,7 @@ xpi_unpack () {
done
}
-xpi_install () {
+xpi_install() {
local d x
# You must tell xpi_install which dir to use
@@ -269,7 +269,7 @@ xpi_install () {
# This function is called by mv_mozextension_src_install
# and should be overridden if the paths do not match:
# It just should call xpi_install with the correct argument(s)
-xpi_install_dirs () {
+xpi_install_dirs() {
local d
for d in "${WORKDIR}"/*
do [ -n "${d}" ] && test -d "${d}" && xpi_install "${d}"