summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* xdt-autogen: Fallback on `\n` as IFS if `\1` is not supportedGaël Bonithon2022-01-291-0/+6
| | | | Fixes #54.
* Create the m4/ if it does not existsRomain Bouvier2021-03-051-0/+3
| | | | | - So we are sure to not print any warning because of a missing m4/ folder on first aclocal run
* Use autoreconf to bootstrap autotoolsRomain Bouvier2021-03-051-128/+18
| | | | | | | | | | | | - autoreconf already do all the jobs and detections, we don't need to run manually multiples binaries - Remove obsolete checks/warnings we are doing for libtoolize, all our components have been ported - Simply run autoreconf with good options should be enough for everything - We still need to run intltoolize and gtkdocize manually to support autotool 2.69 - This fix issue #42
* Get rid of glib-gettextize usage and XGETTEXT_ARGS custom argsRomain Bouvier2021-01-121-59/+0
| | | | | | | - intltoolize already do all the job that glib-gettextize do (maybe since 10 years) - Remove the XGETTEXT_ARGS custom feature, I can't find any projec using this in xfce
* Do not process @LINGUAS@ at xdt-autogen stageRomain Bouvier2020-12-181-5/+2
| | | | | | - We don't need to find all langugaes at this step, because it is done in xdt-i18n.m4 macros since 4.15 when XDT_I18N is called. - And the "-printf" argument is not supported on BSD find
* xdt-autogen: Various small improvementsGaël Bonithon2020-10-031-75/+75
| | | | | | | | | | | | - quoting - replace backticks with $() - replace 'test "x$var"' with 'test "$var"' - replace $(pwd) with $PWD - simplify the command to search for languages - do not use subshell when unneeded - do not use redirection when unneeded - directly test command exit codes instead of using $? - readability (useless ";", indenting)
* xdt-autogen: Properly handle whitespaces in filenamesGaël Bonithon2020-10-031-58/+100
| | | | | | | | | | | | | | | | | | | | | | and more generally special characters different from '\1'. This is achieved by replacing the filename separator ' ' with '\1' in lookup_configure_ac_*(), and the default IFS=' \t\n' with IFS='\1', but only where necessary: the default IFS is usually required for things to go as expected. So we have to do an IFS round-trip substitution around each "for" loop on filenames, just before and just after pathname expansion by the shell. Additionally, when running $XDT_PROG_ACLOCAL, one has to define some new variables ACLOCAL_DIR and use conditional parameter expansion, to properly set the program flags: $XDT_PROG_ACLOCAL ${ACLOCAL_DIR:+-I "$ACLOCAL_DIR"} Finally, one has to take care of some non optional quoting (strictly speaking, some are optional in this commit, but I preferred not to cut as close as possible and to keep an overall coherence).
* xdt-autogen: Use sed instead of tr to replace stringsGaël Bonithon2020-10-031-3/+13
| | | | | | | | | The purpose of the current code seems to be to replace the strings '\t', '\n' and '\\' by a single space ' ', not the characters "horizontal tab", "line feed" and "backslash" by a single space. So the right command to do this is sed, not tr, which doesn't do the job expected here.
* Update for releasexfce4-dev-tools-4.15.0xfce-4.16pre1Romain Bouvier2020-06-241-1/+1
|
* xdt-autogen: explicitly set search path for m4 macrosNatanael Copa2020-06-241-2/+3
| | | | | | | | There is no guarantee that the configured include dir is in aclocal default search path. For example, system aclocal may not search for m4 macros under /usr/local. Fixes #36
* Install m4 macros into default $datadir/aclocalNatanael Copa2020-06-111-14/+1
| | | | | | | | Install the m4 macros in location where autoconf will find them by default. Adjust xdt-autogen to depend on the default location while still respect any set ACLOCAL_FLAGS or XDT_ACLOCAL_FLAGS.
* xdt-autogen: Improve and simplify linguas detectionNatanael Copa2020-06-041-20/+1
| | | | | | | | | | | The `ls *.po | awk ..` pattern is generally not recommended[0]. Replace it with a tiny for loop with basename. Use POSIX `tr`[1] to delete the trailing end-of-line, since `echo -n` is not specified in POSIX[2]. This also removes the need for awk check. [0]: https://github.com/koalaman/shellcheck/wiki/SC2012#rationale [1]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/tr.html [2]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/echo.html
* Let configure generate the xdt-autogen scriptNatanael Copa2020-06-042-11/+3
| | | | | No need to add the rule to Makefile.am when configure itself can generate the file.
* Implement XDT_VERSION_INITNatanael Copa2020-06-041-1/+0
| | | | | | | | | | | | | | | | | | | | | | Add an XDT_VERSION_INIT help macro that will define a set of version macros using esyscmd so we no lnger need to use configure.ac.in to perpare the version string for AC_INIT. XDT_VERSION_INIT(SEMVER, [TAG] will set the following macros: - xdt_version - xdt_version_major - xdt_version_minor - xdt_version_micro - xdt_version_tag - xdt_version_build - xdt_debug_default Example usage: XDT_VERSION_INIT([4.15.3],[git]) AC_INIT([xfce4-someproject], [xdt_version()]) ... XDT_FEATURE_DEBUG([xdt_debug_default])
* Remove svn support in xdt-autogenRomain Bouvier2019-05-231-85/+3
| | | | | - Also simplify a bit the XDT_AUTOGEN_REQUIRED_VERSION detection - Remove the check of the unused doc submodule
* Cleanup xfce4-dev-toolsRomain Bouvier2019-05-232-141/+1
| | | | | | | | - Remove useless macros: m4macros/xdt-python.m4 and m4macros/xdt-xfce.m4 are not used - Update URLs - Remove xdt-commit, used to generate Changelog, now done via make distcheck
* Update list of files to clean with xdt-autogenHarald Judt2015-02-171-2/+7
|
* Use the correct libtool version number in the xdt-autogen warningHarald Judt2015-02-171-1/+1
| | | | | | | Commit de3d7f0 "Display warning if AC_PROG_INTLTOOL is used (bug #8930)" prints a warning with a hardcoded libtool version. This patch replaces the hardcoded value with the version number defined in configure.ac.in, so developers will use the proper requirements.
* Cleanup files and update .gitignoreHarald Judt2015-02-171-3/+1
| | | | Update copyright dates, remove subversion $id strings, update .gitignore.
* Fix out of source building (bug #10899)Jannis Pohlmann2014-07-271-4/+4
| | | | | | Depending on files generated during build via $(srcdir) breaks builds that take place outside the source directory. This commit fixes one such mistake in scripts/Makefile.am that refers to $(srcdir)/xdt-autogen.in.
* Display warning if AC_PROG_INTLTOOL is used (bug #8930)Jannis Pohlmann2014-07-271-0/+12
| | | | | | | | | | Similar to AC_PROG_LIBTOOL, which has been replaced with LT_PREREQ and LT_INIT, AC_PROG_INTLTOOL has been replaced with IT_PROG_INTLTOOL. This commit makes xdt-autogen recommend intltool >= 0.35.0 and displays a warning if AC_PROG_INTLTOOL is still being used in a configure script template. Original patch by Samuli Suominen <ssuominen@gentoo.org>
* Fix comment.Nick Schermer2012-04-141-2/+1
|
* Use ?_VERSION for special versioned binary detection (bug #8683).Nick Schermer2012-04-131-22/+19
| | | | | | | | | Use AUTOCONF_VERSION for automake-$ver, ACLOCAL_VERSION for aclocal-$ver, AUTOMAKE_VERSION for automake-$ver and AUTOHEADER_VERSION for autoheader-$ver. This removes the custom checks for the //newest// binary version, which gets constantly outdated.
* Add support for LT_PREREQ (bug #6920).Nick Schermer2011-11-031-1/+19
| | | | | | Support LT_PREREQ as the new alternative of AC_PROG_LIBTOOL. If the latter is used, show a message with information how to switch to LT_PREREQ.
* Fix FSF address and add missing licenses.Nick Schermer2011-03-062-26/+22
|
* Check for glibtoolize.Benedikt Meurer2010-12-191-1/+7
|
* Merge remote branch 'origin'Benedikt Meurer2010-12-191-5/+43
|\
| * Fix typo.Enrico Tröger2010-11-211-1/+1
| |
| * Check if $1 is a file before calling cat (bug #6101).Nick Schermer2010-10-311-1/+1
| |
| * Check for automake 1.11.Yves-Alexis Perez2010-10-311-2/+2
| |
| * Add check stage for documentation submodules.Nick Schermer2010-10-311-2/+40
| | | | | | | | | | | | | | | | | | | | | | | | This adds an extra check when XDT_AUTOGEN_CHECK_DOCS is defined. This variable points to the directory that should contain the xfce4-docs submodule. If no submodule clone if found and autogen.sh is running from within a git clone, it will automatically initialize the submodule for the user, if not it will show an error and abort xdt-autogen, since configure will abort too if we continue because of missing makefile.am files.
* | Use printf instead of echo -n.Benedikt Meurer2010-12-191-3/+3
|/ | | | | /bin/sh does not support the -n option for echo. Use printf instead, which is independent of the shell.
* add do-not-edit warning to top of autogenerated configure.{ac,in}Brian J. Tarricone2009-08-261-1/+9
|
* remove configure.{ac,in} on 'clean' if configure.{ac,in}.in existsBrian J. Tarricone2009-08-261-9/+14
|
* print warning if attempting to compare git revision versionsBrian J. Tarricone2009-08-261-3/+4
| | | | | | | we can't tell version ordering, but it's possible it's fine, so just print a warning and proceed. autogen.sh writers shouldn't depend on particular git revisions, only on release versions, but let's soft-allow it.
* make lookup_configure_ac_files act like lookup_configure_ac_in_filesBrian J. Tarricone2009-08-261-9/+8
|
* rename CONFIGURE_FILES to CONFIGURE_AC_FILES for clarityBrian J. Tarricone2009-08-261-40/+40
| | | | also rename some similar vars/functions for the same reason
* be a little more portable, and select the best awk implementationBrian J. Tarricone2009-08-261-7/+42
|
* also recognize new-school AC_CONFIG_HEADERS() as requiring autoheaderBrian J. Tarricone2009-08-261-2/+2
|
* the -q option to grep is specified by POSIX, so no reason not to use itBrian J. Tarricone2009-08-261-8/+8
|
* fix distcheck (output is in builddir, not srcdir)Brian J. Tarricone2009-08-181-1/+1
|
* do @REVISION@ and @LINGUAS@ substitution in xdt-autogenBrian J. Tarricone2009-08-181-2/+64
|
* add --version and -V options, add required minimum version check.Brian Tarricone2009-07-282-1/+86
| | | | | | | | users who wish to require a minimum version of xdt-autogen should export XDT_AUTOGEN_REQUIRED_VERSION, set to the minimum required version that is supported. (Old svn revision: 30414)
* also support the newer IT_PROG_INTLTOOL macroBrian Tarricone2009-07-281-2/+2
| | | | (Old svn revision: 30408)
* * scripts/xdt-commit: Replace grep -P with awk and thus make theJannis Pohlmann2009-02-171-3/+5
| | | | | | | | | script more portable. Properly detect changed ChangeLogs in SVN. This should get rid the empty lines when committing several changed ChangeLogs (bug #4716). Patch provided by Alexander Toresson. (Old svn revision: 29499)
* * scripts/xdt-autogen.in: Remove intltool auto-patch: it wasn'tBrian Tarricone2008-11-171-49/+0
| | | | | | terribly reliable, and Xfce doesn't need it anymore anyway. (Old svn revision: 28835)
* * scripts/xdt-commit: Use !/bin/bash instead of !/bin/sh in theJannis Pohlmann2008-11-111-1/+1
| | | | | | script header just to make sure everything works as it should. (Old svn revision: 28718)
* * scripts/xdt-commit: Automatically add ChangeLog files of gitJannis Pohlmann2008-11-011-2/+7
| | | | | | | repositories to the commit with "git add ${CHANGELOG}". Use "git diff --cached" instead of "git diff HEAD" for the commit messages. (Old svn revision: 28557)
* * scripts/xdt-commit: Support git/git-svn as well as svn (bug 4491).Brian Tarricone2008-10-181-14/+52
| | | | | | * configure.in.in: Re-add 'svn' version tag. (Old svn revision: 28295)
* * scripts/xdt-autogen.in: Only attempt to patch intltool merge forBrian Tarricone2008-10-121-2/+20
| | | | | | | | versions of intltool < 0.40.0. Versions starting from 0.40.4 are fixed, and earlier 0.40.x versions aren't patchable because they use a systemwide copy of intltool-merge. (Old svn revision: 28165)