Newer versions of the helper scripts upstream
This commit is contained in:
parent
990be542e0
commit
10477fe9b6
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2011-2013 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2011-2014 Pierre Pronchery <khorben@defora.org>
|
||||||
#
|
#
|
||||||
#Redistribution and use in source and binary forms, with or without
|
#Redistribution and use in source and binary forms, with or without
|
||||||
#modification, are permitted provided that the following conditions are met:
|
#modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
. "../config.sh"
|
[ -f "../config.sh" ] && . "../config.sh"
|
||||||
DEBUG="_debug"
|
DEBUG="_debug"
|
||||||
DEVNULL="/dev/null"
|
DEVNULL="/dev/null"
|
||||||
#executables
|
#executables
|
||||||
|
@ -45,6 +45,14 @@ _debug()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#error
|
||||||
|
_error()
|
||||||
|
{
|
||||||
|
echo "pkgconfig.sh: $@" 1>&2
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
|
@ -85,6 +93,16 @@ if [ $# -eq 0 ]; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#check the variables
|
||||||
|
if [ -z "$PACKAGE" ]; then
|
||||||
|
_error "The PACKAGE variable needs to be set"
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
if [ -z "$VERSION" ]; then
|
||||||
|
_error "The VERSION variable needs to be set"
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
PKGCONFIG="$PREFIX/lib/pkgconfig"
|
PKGCONFIG="$PREFIX/lib/pkgconfig"
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
target="$1"
|
target="$1"
|
||||||
|
@ -118,9 +136,11 @@ while [ $# -gt 0 ]; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#create
|
#create
|
||||||
$DEBUG $SED -e "s;@PREFIX@;$PREFIX;" \
|
$DEBUG $SED -e "s;@PACKAGE@;$PACKAGE;" \
|
||||||
-e "s;@VERSION@;$VERSION;" \
|
-e "s;@VERSION@;$VERSION;" \
|
||||||
-e "s;@RPATH@;$RPATH;" -- "$target.in" > "$target"
|
-e "s;@PREFIX@;$PREFIX;" \
|
||||||
|
-e "s;@RPATH@;$RPATH;" \
|
||||||
|
-- "$target.in" > "$target"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
$DEBUG $RM -- "$target"
|
$DEBUG $RM -- "$target"
|
||||||
exit 2
|
exit 2
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2012-2013 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2012-2014 Pierre Pronchery <khorben@defora.org>
|
||||||
#
|
#
|
||||||
#Redistribution and use in source and binary forms, with or without
|
#Redistribution and use in source and binary forms, with or without
|
||||||
#modification, are permitted provided that the following conditions are met:
|
#modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
. "../config.sh"
|
[ -f "../config.sh" ] && . "../config.sh"
|
||||||
#executables
|
#executables
|
||||||
DEBUG="_debug"
|
DEBUG="_debug"
|
||||||
INSTALL="install -m 0644"
|
INSTALL="install -m 0644"
|
||||||
|
@ -44,6 +44,14 @@ _debug()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#error
|
||||||
|
_error()
|
||||||
|
{
|
||||||
|
echo "docbook.sh: $@" 1>&2
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
|
@ -84,6 +92,12 @@ if [ $# -eq 0 ]; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#check the variables
|
||||||
|
if [ -z "$PACKAGE" ]; then
|
||||||
|
_error "The PACKAGE variable needs to be set"
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
|
[ -z "$DATADIR" ] && DATADIR="$PREFIX/share"
|
||||||
[ -z "$MANDIR" ] && MANDIR="$DATADIR/man"
|
[ -z "$MANDIR" ] && MANDIR="$DATADIR/man"
|
||||||
|
|
||||||
|
@ -123,7 +137,7 @@ while [ $# -gt 0 ]; do
|
||||||
#install
|
#install
|
||||||
if [ "$install" -eq 1 ]; then
|
if [ "$install" -eq 1 ]; then
|
||||||
$DEBUG $MKDIR -- "$instdir" || exit 2
|
$DEBUG $MKDIR -- "$instdir" || exit 2
|
||||||
$DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2
|
$DEBUG $INSTALL "$target" "$instdir/$target" || exit 2
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2010-2013 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2010-2014 Pierre Pronchery <khorben@defora.org>
|
||||||
#
|
#
|
||||||
#Redistribution and use in source and binary forms, with or without
|
#Redistribution and use in source and binary forms, with or without
|
||||||
#modification, are permitted provided that the following conditions are met:
|
#modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#variables
|
#variables
|
||||||
PREFIX="/usr/local"
|
PREFIX="/usr/local"
|
||||||
. "../config.sh"
|
[ -f "../config.sh" ] && . "../config.sh"
|
||||||
LOCALEDIR="$PREFIX/share/locale"
|
LOCALEDIR="$PREFIX/share/locale"
|
||||||
POTFILES="POTFILES"
|
POTFILES="POTFILES"
|
||||||
#executables
|
#executables
|
||||||
|
@ -49,6 +49,14 @@ _debug()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#error
|
||||||
|
_error()
|
||||||
|
{
|
||||||
|
echo "gettext.sh: $@" 1>&2
|
||||||
|
return 2
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#usage
|
#usage
|
||||||
_usage()
|
_usage()
|
||||||
{
|
{
|
||||||
|
@ -125,6 +133,12 @@ if [ $# -eq 0 ]; then
|
||||||
exit $?
|
exit $?
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#check the variables
|
||||||
|
if [ -z "$PACKAGE" ]; then
|
||||||
|
_error "The PACKAGE variable needs to be set"
|
||||||
|
exit $?
|
||||||
|
fi
|
||||||
|
|
||||||
LOCALEDIR="$PREFIX/share/locale"
|
LOCALEDIR="$PREFIX/share/locale"
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
target="$1"
|
target="$1"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user