Skip to content

Commit

Permalink
Import the latest scripts upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
khorben committed Feb 19, 2016
1 parent 92060e3 commit f3758c6
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
9 changes: 7 additions & 2 deletions data/pkgconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SED="sed"
#debug
_debug()
{
echo "$@" 1>&2
echo "$@" 1>&3
"$@"
}

Expand Down Expand Up @@ -105,6 +105,7 @@ if [ -z "$VERSION" ]; then
fi

PKGCONFIG="$PREFIX/lib/pkgconfig"
exec 3>&1
while [ $# -gt 0 ]; do
target="$1"
shift
Expand All @@ -122,7 +123,11 @@ while [ $# -gt 0 ]; do
if [ "$install" -eq 1 ]; then
source="${target#$OBJDIR}"
$DEBUG $MKDIR -- "$PKGCONFIG" || exit 2
$DEBUG $INSTALL "$target" "$PKGCONFIG/$source" || exit 2
basename="$source"
if [ "${source##*/}" != "$source" ]; then
basename="${source##*/}"
fi
$DEBUG $INSTALL "$target" "$PKGCONFIG/$basename"|| exit 2
continue
fi

Expand Down
11 changes: 8 additions & 3 deletions doc/docbook.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2012-2014 Pierre Pronchery <[email protected]>
#Copyright (c) 2012-2015 Pierre Pronchery <[email protected]>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -42,7 +42,7 @@ XSLTPROC="xsltproc --nonet --xinclude"
#debug
_debug()
{
echo "$@" 1>&2
echo "$@" 1>&3
"$@"
}

Expand Down Expand Up @@ -151,6 +151,7 @@ fi
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
[ -z "$MANDIR" ] && MANDIR="$DATADIR/man"

exec 3>&1
while [ $# -gt 0 ]; do
target="$1"
shift
Expand Down Expand Up @@ -194,7 +195,11 @@ while [ $# -gt 0 ]; do
#install
if [ "$install" -eq 1 ]; then
source="${target#$OBJDIR}"
$DEBUG $MKDIR -- "$instdir" || exit 2
dirname=
if [ "${source%/*}" != "$source" ]; then
dirname="/${source%/*}"
fi
$DEBUG $MKDIR -- "$instdir$dirname" || exit 2
$DEBUG $INSTALL "$target" "$instdir/$source" || exit 2
continue
fi
Expand Down
3 changes: 2 additions & 1 deletion po/gettext.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ XGETTEXT="xgettext --force-po"
#debug
_debug()
{
echo "$@" 1>&2
echo "$@" 1>&3
"$@"
}

Expand Down Expand Up @@ -147,6 +147,7 @@ if [ -z "$PACKAGE" ]; then
fi

LOCALEDIR="$PREFIX/share/locale"
exec 3>&1
while [ $# -gt 0 ]; do
target="$1"
source="${target#$OBJDIR}"
Expand Down

0 comments on commit f3758c6

Please sign in to comment.