Unify the scripts some more

This commit is contained in:
Pierre Pronchery 2020-11-19 02:18:01 +01:00
parent 3ba2c65efc
commit a06e4715e4
19 changed files with 51 additions and 13 deletions

1
doc/scripts/config.sh Normal file
View File

@ -0,0 +1 @@
[ -f "../config.sh" ] && . "../config.sh"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2011-2019 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2011-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -27,14 +27,15 @@
#variables
CONFIGSH="${0%/pkgconfig.sh}/../config.sh"
PREFIX="/usr/local"
DEBUG="_debug"
DEVNULL="/dev/null"
PROGNAME="pkgconfig.sh"
#executables
DEBUG="_debug"
INSTALL="install -m 0644"
MKDIR="mkdir -m 0755 -p"
RM="rm -f"
SED="sed"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2012-2017 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2012-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -25,8 +25,8 @@
#variables
CONFIGSH="${0%/docbook.sh}/../config.sh"
PREFIX="/usr/local"
[ -f "../config.sh" ] && . "../config.sh"
PROGNAME="docbook.sh"
#executables
DEBUG="_debug"
@ -37,6 +37,8 @@ RM="rm -f"
XMLLINT="xmllint"
XSLTPROC="xsltproc --nonet --xinclude"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#debug

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/gtkdoc.sh}/../config.sh"
PREFIX="/usr/local"
PROGNAME="gtkdoc.sh"
#executables
@ -41,7 +42,7 @@ RM="rm -f"
RMDIR="rmdir"
TOUCH="touch"
[ -f "../config.sh" ] && . "../config.sh"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2019 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2019-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -36,6 +36,7 @@ MKDIR="mkdir -m 0755 -p"
RM="rm -f"
RST2HTML="rst2html5-2.7.py"
RST2MAN="rst2man-2.7.py"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2010-2017 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2010-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -25,8 +25,8 @@
#variables
CONFIGSH="${0%/gettext.sh}/../config.sh"
PREFIX="/usr/local"
[ -f "../config.sh" ] && . "../config.sh"
LOCALEDIR="$PREFIX/share/locale"
POTFILES="POTFILES"
PROGNAME="gettext.sh"
@ -40,6 +40,8 @@ MSGMERGE="msgmerge"
RM="rm -f"
XGETTEXT="xgettext --force-po"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#debug

View File

@ -1,4 +1,4 @@
dist=Makefile,data/pkgconfig.sh,doc/docbook.sh,doc/gtkdoc.sh,doc/manual.css.xml,doc/markdown.sh,po/gettext.sh,tests/clint.sh,tests/coverage.sh,tests/fixme.sh,tests/htmllint.sh,tests/phplint.sh,tests/pylint.sh,tests/shlint.sh,tests/xmllint.sh,tools/appbroker.sh,tools/platform.sh,tools/subst.sh,tools/template.sh
dist=Makefile,config.sh,data/pkgconfig.sh,doc/docbook.sh,doc/gtkdoc.sh,doc/manual.css.xml,doc/markdown.sh,po/gettext.sh,tests/clint.sh,tests/coverage.sh,tests/fixme.sh,tests/htmllint.sh,tests/phplint.sh,tests/pylint.sh,tests/shlint.sh,tests/xmllint.sh,tools/appbroker.sh,tools/platform.sh,tools/subst.sh,tools/template.sh
#dist
[data/pkgconfig.sh]

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/clint.sh}/../config.sh"
CFLAGS=
CPPFLAGS=
PROGNAME="clint.sh"
@ -39,6 +40,8 @@ MKDIR="mkdir -p"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#clint

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2018 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2018-2020 Pierre Pronchery <khorben@defora.org>
#This file is part of DeforaOS System libSystem
#All rights reserved.
#
@ -30,6 +30,7 @@
#variables
CONFIGSH="${0%/coverage.sh}/../config.sh"
CFLAGS=
LDFLAGS=
PROGNAME="coverage.sh"
@ -44,6 +45,8 @@ MKDIR="mkdir -p"
MKTEMP="mktemp"
RM="rm -f"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#coverage
_coverage()

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/fixme.sh}/../config.sh"
PROGNAME="fixme.sh"
PROJECTCONF="../project.conf"
REGEXP_ERROR="FIXME"
@ -39,6 +40,8 @@ MKDIR="mkdir -p"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#fixme

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/htmllint.sh}/../config.sh"
DEVNULL="/dev/null"
PROGNAME="htmllint.sh"
PROJECTCONF="../project.conf"
@ -37,6 +38,8 @@ MKDIR="mkdir -p"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#htmllint

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/phplint.sh}/../config.sh"
PROGNAME="phplint.sh"
PROJECTCONF="../project.conf"
#executables
@ -36,6 +37,8 @@ PHPLINT="php -l"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#phplint

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/pylint.sh}/../config.sh"
PROGNAME="pylint.sh"
PROJECTCONF="../project.conf"
#executables
@ -36,6 +37,8 @@ PYLINT="pep8"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#pylint

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/shlint.sh}/../config.sh"
PROGNAME="shlint.sh"
PROJECTCONF="../project.conf"
#executables
@ -36,6 +37,8 @@ SHLINT="sh -n"
SORT="sort -n"
TR="tr"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#shlint

View File

@ -25,6 +25,7 @@
#variables
CONFIGSH="${0%/xmllint.sh}/../config.sh"
DEVNULL="/dev/null"
PROGNAME="xmllint.sh"
PROJECTCONF="../project.conf"
@ -37,6 +38,8 @@ SORT="sort -n"
TR="tr"
XMLLINT="xmllint --nonet"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#xmllint

View File

@ -25,11 +25,14 @@
#variables
CONFIGSH="${0%/appbroker.sh}/../config.sh"
PROGNAME="appbroker.sh"
#executables
APPBROKER="AppBroker"
DEBUG="_debug"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"
#functions
#appbroker

View File

@ -33,6 +33,7 @@ PROGNAME="platform.sh"
SOEXT=
#executables
UNAME="uname"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2012-2019 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2012-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -45,6 +45,7 @@ INSTALL="install"
MKDIR="mkdir -m 0755 -p"
RM="rm -f"
SED="sed"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"

View File

@ -1,6 +1,6 @@
#!/bin/sh
#$Id$
#Copyright (c) 2019 Pierre Pronchery <khorben@defora.org>
#Copyright (c) 2019-2020 Pierre Pronchery <khorben@defora.org>
#
#Redistribution and use in source and binary forms, with or without
#modification, are permitted provided that the following conditions are met:
@ -25,7 +25,7 @@
#variables
CONFIGSH="${0%/template.sh}/../../config.sh"
CONFIGSH="${0%/template.sh}/../config.sh"
PREFIX="/usr/local"
DATABASEDIR="../data"
PROGNAME="template.sh"
@ -34,6 +34,7 @@ DEBUG="_debug"
INSTALL="install -m 0644"
RM="rm -f"
SED="sed"
[ -f "$CONFIGSH" ] && . "$CONFIGSH"