summaryrefslogtreecommitdiff
path: root/m4
Commit message (Collapse)AuthorAgeFilesLines
* maint: Update copyright statements to 2022Brian C. Lane2022-03-231-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2021Brian C. Lane2021-01-181-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2020Brian C. Lane2020-12-111-1/+1
| | | | By running make update-copyright
* maint: Update copyright statements to 2019Brian C. Lane2019-08-121-1/+1
| | | | By running make update-copyright
* maint: run "make update-copyright"Jim Meyering2014-05-251-1/+1
|
* maint: update all copyright year number rangesJim Meyering2013-01-061-1/+1
| | | | Run "make update-copyright".
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* maint: update copyright year ranges to include 2011Jim Meyering2011-02-221-1/+1
| | | | Run "make update-copyright".
* maint: update all FSF copyright year lists to include 2010Jim Meyering2010-01-081-1/+1
| | | | Run this command: make update-copyright
* maint: use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1 to exitJim Meyering2009-11-071-2/+2
| | | | | | | | | | | | | | | | | Convert all uses automatically, via these two commands: git grep -l '\<exit *(1)'|xargs --no-run-if-empty \ perl -pi -e 's/\b(exit ?)\(1\)/$1(EXIT_FAILURE)/' git grep -l '\<exit *(0)'|xargs --no-run-if-empty \ perl -pi -e 's/\b(exit ?)\(0\)/$1(EXIT_SUCCESS)/' * libparted/fs/fat/table.c (fat_table_get): Use symbolic exit codes. * libparted/labels/vtoc.c (vtoc_update_format5_label_add): Likewise. (vtoc_update_format5_label_del): Likewise. (vtoc_update_format7_label_add): Likewise. (vtoc_update_format7_label_del): Likewise. * m4/parted.m4 (PARTED_CHECK_LIBPARTED): Likewise. * parted/parted.c (do_quit): Likewise. * parted/strlist.c (gettext_to_wchar, wchar_to_str): Likewise. * parted/ui.c (reset_env, help_msg, non_interactive_mode): Likewise.
* maint: update most copyright year lists to include 2009Jim Meyering2009-09-291-1/+1
| | | | | | I used this command: make update-copyright \ UPDATE_COPYRIGHT_FORCE=1 UPDATE_COPYRIGHT_USE_INTERVALS=1
* remove all trailing blanksJim Meyering2009-03-051-5/+5
| | | | | | ...by running these commands: t=$'\t' git grep -l "[ $t]\$"|xargs perl -pi -e 's/[ \t]+$//'
* better m4 quotingJim Meyering2009-01-261-12/+12
|
* Remove useless "if" tests before free.Jim Meyering2008-04-301-3/+2
| | | | | | | * libparted/arch/linux.c (_dm_add_partition): Remove useless test. * libparted/labels/fdasd.c (fdasd_cleanup): Likewise. * m4/o-direct.m4 (parted_FIND_USABLE_TEST_DIR): Likewise. * parted/table.c (table_destroy): Likewise.
* Fix "make distcheck" failure due to not finding usable partitionJim Meyering2007-05-311-9/+27
| | | | | | | | | * m4/o-direct.m4: Require that read as well as write succeed. Require that both work with blocks of size 512 as well as 4096. Reiserfs3 doesn't support 512-byte reads. Allow the user running the test to specify the first directory to test via the PARTED_TMPDIR envvar, in case none of the dirs checked by default is usable.
* Don't fail all tests when "." lacks O_DIRECT support.Jim Meyering2007-05-231-0/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I often build tools on a tmpfs file system (it's faster), and found that parted tests always failed there. That's because it tries to open the "device" (a file) with O_DIRECT, and at least the linux tmpfs driver always fails with EINVAL in that case. So here's a patch that makes it work. Since the test may require writing in a directory like /tmp, to which others typically have write access, it is particularly careful about security (see the mkdtemp script below), in case "make check" is run by e.g., root. Don't fail all tests when "." lacks O_DIRECT support. Before, running "make check" on a file system that doesn't support O_DIRECT (e.g. tmpfs), would always fail. Now, it works, as long as the test machinery can find a writable directory in which open with O_DIRECT *does* work. * m4/o-direct.m4: New file. Find a directory/FS with O_DIRECT support. * configure.ac: Use the new macro. * libparted/tests/t1000-label.sh: New file. Wrap the binary, so it can take advantage of the code that finds O_DIRECT supporting FS. * tests/mkdtemp: New file. Required, since when running tests as root, we may have to create a temporary directory in a directory like /tmp that's writable by others. * tests/Makefile.am (EXTRA_DIST): Add mkdtemp. * tests/test-lib.sh: When creating test subdir, and setting up "trap", use the directory specified in $PARTED_USABLE_TEST_DIR. Don't set PATH here. Now, that's done via the generated, and always- sourced, init.sh. As a result, invoke parted via its full file name.
* mv parted.m4 into new dir, m4/Jim Meyering2007-02-251-0/+110
* Makefile.am (EXTRA_DIST): Remove parted.m4. Now that it's in m4, it's included automatically. (aclocal_DATA): Remove unnecessary definition.