summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2014-10-10 14:31:55 +0000
committer~suv <suv-sf@users.sourceforge.net>2014-10-10 14:31:55 +0000
commit2a3231bec43e2f0685ba60b5be2d7103f223f68a (patch)
treee24b4b6f04daf74295a4115ec753054366dc7aa3 /packaging
parentupdate to trunk (r13580) (diff)
downloadinkscape-2a3231bec43e2f0685ba60b5be2d7103f223f68a.tar.gz
inkscape-2a3231bec43e2f0685ba60b5be2d7103f223f68a.zip
packaging scripts: fix syntax
(bzr r13506.1.110)
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/osx-app.sh2
-rwxr-xr-xpackaging/macosx/osx-build.sh12
2 files changed, 7 insertions, 7 deletions
diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh
index e0cdcb913..8931aca77 100755
--- a/packaging/macosx/osx-app.sh
+++ b/packaging/macosx/osx-app.sh
@@ -465,7 +465,7 @@ fi
# Add python modules if requested
if [ ${add_python} = "true" ]; then
- function install_py_modules ()
+ install_py_modules ()
{
# lxml
$cp_cmd -RL "$packages_path/lxml" "$pkgpython"
diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh
index 7443b1698..3d5e5b1de 100755
--- a/packaging/macosx/osx-build.sh
+++ b/packaging/macosx/osx-build.sh
@@ -273,7 +273,7 @@ fi
# Utility functions
# ----------------------------------------------------------
-function getinkscapeinfo () {
+getinkscapeinfo () {
osxapp_domain="$BUILDPREFIX/Info"
INKVERSION="$(defaults read $osxapp_domain CFBundleVersion)"
@@ -288,7 +288,7 @@ function getinkscapeinfo () {
}
-function checkversion () {
+checkversion () {
DEPVER="$(pkg-config --modversion $1 2>/dev/null)"
if [[ "$?" == "1" ]]; then
[[ $2 ]] && DEPVER="$(checkversion-port $2)" || unset DEPVER
@@ -301,7 +301,7 @@ function checkversion () {
echo "$DEPVER"
}
-function checkversion-port () {
+checkversion-port () {
if [[ "$use_port" == "t" ]]; then
PORTVER="$(port echo $1 and active 2>/dev/null | cut -d@ -f2 | cut -d_ -f1)"
else
@@ -310,7 +310,7 @@ function checkversion-port () {
echo "$PORTVER"
}
-function checklicense-port() {
+checklicense-port() {
if [[ "$use_port" == "t" ]]; then
PORTLIC="$(port info --license --line $1 2>/dev/null)"
PORTURL="$(port info --homepage --line $1 2>/dev/null)"
@@ -325,12 +325,12 @@ function checklicense-port() {
echo "$PORTLIC"
}
-function checkversion-py-module () {
+checkversion-py-module () {
# python -c "import foo; ..."
echo "TODO."
}
-function buildinfofile () {
+buildinfofile () {
getinkscapeinfo
# Prepare information file
echo "Build information on $(date) for $(whoami):