aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* etc-update: handle emacs diff cmd, bug #409849Zac Medico2012-03-271-1/+3
|
* etc-update: remove duplicate using_editorZac Medico2012-03-271-1/+0
|
* etc-update: quote ${file}v2.2.0_alpha91Zac Medico2012-03-171-1/+1
|
* etc-update: ignore non-existent CONFIG_PROTECTZac Medico2012-03-171-2/+5
|
* etc-update: ignore changes in whitespace (-b) for automergeMike Frysinger2012-03-121-16/+13
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: fix logic bug with protected filesMike Frysinger2012-03-111-3/+4
| | | | | | | | The rewrite introduced a slight bug with protected files. Fix that, and rework the code slightly to make it obvious that we want a diff set of options for files and dirs. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: handle symlinked filesMike Frysinger2012-03-101-4/+22
| | | | | | | | | If the config file is symlinked somewhere, then update the target rather then discarding the symlink and replacing it with a real file. URL: http://bugs.gentoo.org/330221 Reported-by: Jack Byer <ftn768@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: fix default "enter" behaviorMike Frysinger2012-03-101-2/+5
| | | | | | | | Adding support for -[3579] command line flags inadvertently broke the default behavior of hitting "enter" to automatically select the next file. Make this work again. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: add a --preen flagMike Frysinger2012-03-101-0/+5
| | | | | | | | Add a flag to merge just trivial updates and then quit. URL: http://bugs.gentoo.org/159080 Reported-by: Iván Pérez Domínguez <iperez@babel.ls.fi.upm.es> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: support scan paths on the command lineMike Frysinger2012-03-101-4/+8
| | | | | | URL: http://bugs.gentoo.org/59235 Reported-by: Cory Visi <merlin@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: turn -[3579] flags into command line optionMike Frysinger2012-03-081-31/+54
| | | | | | | This lets people do `etc-update --automode -3` rather than having to do something like `echo "-3" | etc-update`. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: rewrite significantlyMike Frysinger2012-03-081-305/+338
| | | | | | | | | | | | | | This tool is very inefficient, especially in the case of auto-merging with -3/-5 and such. Rewrite the code to kill off dead paths, compress multiple greps into a single sed, cache more calculated results, and use bash code where possible rather than execing external tools. There are also style updates here, many of which fix quoting issues and other such things. The next rewrite should probably be in python, but this version is fast enough for me now even on my slow machines. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* etc-update: use PORTAGE_INST_UID/GIDZac Medico2011-12-081-2/+4
|
* etc-update: experimental prefix supportZac Medico2011-12-081-3/+3
|
* etc-update: support PAGER env var for bug #384663Zac Medico2011-09-281-1/+10
|
* etc-update: add clear_term config for bug #142508Zac Medico2011-05-311-3/+4
|
* Update timestamps in headers of modified files.Zac Medico2011-05-251-1/+1
|
* etc-update: clear term when appropriateZac Medico2011-05-171-1/+5
| | | | | | | This solves an issue like bug #142508, but involving etc-update instead of dispatch-conf. This is also relevant to bug #70668, which is the same issue, though the reporter suggested to use colors to delimit the output instead of using clear.
* bash: as a general rule, use read -rZac Medico2010-12-291-1/+1
| | | | This solves cases like bug #350045.
* etc-update: eliminate duplicate example configsZac Medico2010-12-131-1/+5
|
* etc-update: tweak style in do_distconf()Anthony Basile2010-12-131-10/+2
|
* etc-update: replace 'seq' with pure bashv2.2.0_alpha8Zac Medico2010-12-121-3/+6
|
* etc-update: add option to save example configAnthony Basile2010-12-121-0/+33
| | | | This will fix bug #348561.
* Add back executable bits, accidentally removed in previous commit.Zac Medico2010-03-241-0/+0
|
* Remove all svn $Id keywords.Zac Medico2010-03-241-1/+0
|
* Don't use $Id or $Rev for version strings since that doesn't work with git.Zac Medico2010-03-241-1/+1
|
* make sure etc-update sorts updates in the order (1) leading dir path (2) ↵Mike Frysinger2009-06-281-2/+2
| | | | | | filename (3) cfg update svn path=/main/trunk/; revision=13723
* Fix incorrect usage of trap (only remove on signal at a time).Zac Medico2008-12-121-1/+2
| | | | svn path=/main/trunk/; revision=12210
* Fix SIGINT and SIGTERM trap handling so the temp dir always cleaned up whenZac Medico2008-11-231-4/+4
| | | | | | killed. svn path=/main/trunk/; revision=12055
* Bug #188780 - Make the read_int() function show a more human readable errorZac Medico2008-11-231-1/+2
| | | | | | | message, instead of the 'value too great for base' message when the user enters an invalid value such as '1y'. svn path=/main/trunk/; revision=12053
* Bug #173284 - Do not traverse hidden directories such as .svn or .git whenZac Medico2008-11-151-3/+5
| | | | | | search for protected files. svn path=/main/trunk/; revision=11928
* only use dummy echos in do_file() when running in interactive modeMike Frysinger2008-10-101-2/+3
| | | | svn path=/main/trunk/; revision=11673
* As suggested by grobian, treat Darwin just like USERLAND=gnuZac Medico2007-12-291-2/+1
| | | | | | since they seem to be switching commands to gnu anyway. svn path=/main/trunk/; revision=9118
* Fix USERLAND references to handle Darwin like BSD.Zac Medico2007-12-291-4/+5
| | | | svn path=/main/trunk/; revision=9117
* Call die() so that the $TMP directory is always properlyZac Medico2007-11-031-7/+6
| | | | | | cleaned up. svn path=/main/trunk/; revision=8405
* if mode=1 and `dialog` is not usable, abort #197990 by DominikBuerkleMike Frysinger2007-11-031-0/+7
| | | | svn path=/main/trunk/; revision=8402
* Bug #195949 - Add one more using_editor conditional forZac Medico2007-10-151-2/+10
| | | | | | diff_command. svn path=/main/trunk/; revision=8130
* Bug #195949 - Use a different diff_command sanity checkZac Medico2007-10-151-7/+14
| | | | | | when using_editor is true. svn path=/main/trunk/; revision=8129
* add --debug option and display a message about skipping non-files so we dont ↵Mike Frysinger2007-10-071-3/+9
| | | | | | get confusing loops where portage claims there are things to update but etc-update claims there are not svn path=/main/trunk/; revision=7994
* add standard --help/--version optionsMike Frysinger2007-10-071-1/+25
| | | | svn path=/main/trunk/; revision=7993
* unify diff_command handlingMike Frysinger2007-10-071-16/+19
| | | | svn path=/main/trunk/; revision=7992
* no need to use "function" when defining a functionMike Frysinger2007-10-031-10/+10
| | | | svn path=/main/trunk/; revision=7908
* this isnt part of gentoolkit anymoreMike Frysinger2007-10-031-1/+1
| | | | svn path=/main/trunk/; revision=7907
* Initialize PORTAGE_TMPDIR before using it.Zac Medico2007-09-291-3/+3
| | | | svn path=/main/trunk/; revision=7887
* Initialize ${TMP} before registering the die trap so thatZac Medico2007-09-241-1/+1
| | | | | | we're sure which directory die will clean up. svn path=/main/trunk/; revision=7802
* fix possible information leak vulnerability when doing a merge of ↵Mike Frysinger2007-09-241-11/+22
| | | | | | configuration files and be better about handling of whitespace in $TMP in a few places svn path=/main/trunk/; revision=7799
* tweak get_config() so that it only executes one external binary (sed) ↵Mike Frysinger2007-09-241-9/+15
| | | | | | instead of chaining multiple ones svn path=/main/trunk/; revision=7798
* change directory to / in case $PWD doesnt existMike Frysinger2007-08-261-1/+3
| | | | svn path=/main/trunk/; revision=7702
* Make etc-update copy owner and group bits when it merges config files.Zac Medico2007-08-161-0/+2
| | | | svn path=/main/trunk/; revision=7636
* Use user-provided $mv_opts for -5 (bug #47442)Marius Mauch2007-06-051-1/+2
| | | | svn path=/main/trunk/; revision=6735