Import the latest version upstream

This commit is contained in:
Pierre Pronchery 2019-06-26 19:29:16 +02:00
parent a046446012
commit 75db24dd36

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
#$Id$ #$Id$
#Copyright (c) 2012-2016 Pierre Pronchery <khorben@defora.org> #Copyright (c) 2012-2019 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:
@ -36,7 +36,6 @@ LIBEXECDIR=
MANDIR= MANDIR=
PROGNAME="subst.sh" PROGNAME="subst.sh"
SYSCONFDIR= SYSCONFDIR=
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#executables #executables
CHMOD="chmod" CHMOD="chmod"
DATE="date" DATE="date"
@ -46,6 +45,7 @@ INSTALL="install"
MKDIR="mkdir -m 0755 -p" MKDIR="mkdir -m 0755 -p"
RM="rm -f" RM="rm -f"
SED="sed" SED="sed"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions #functions
@ -192,7 +192,7 @@ while getopts "ciuO:P:" name; do
esac esac
done done
shift $(($OPTIND - 1)) shift $(($OPTIND - 1))
if [ $# -eq 0 ]; then if [ $# -lt 1 ]; then
_usage _usage
exit $? exit $?
fi fi