]> ruderich.org/simon Gitweb - config/dotfiles.git/log
config/dotfiles.git
14 years agoupdate.sh: Fix branch selection.
Simon Ruderich [Sat, 3 Apr 2010 00:11:38 +0000 (02:11 +0200)]
update.sh: Fix branch selection.

14 years agoupdate.sh: Add, updates git repositories.
Simon Ruderich [Tue, 30 Mar 2010 22:23:18 +0000 (00:23 +0200)]
update.sh: Add, updates git repositories.

14 years agolib.sh: Add support for FreeBSD to os().
Simon Ruderich [Mon, 29 Mar 2010 00:52:29 +0000 (02:52 +0200)]
lib.sh: Add support for FreeBSD to os().

14 years agolib.sh: Use simpler version in installed() using cut.
Simon Ruderich [Mon, 29 Mar 2010 00:48:04 +0000 (02:48 +0200)]
lib.sh: Use simpler version in installed() using cut.

14 years agolib.sh: Don't require perl in installed(), instead use awk.
Simon Ruderich [Mon, 29 Mar 2010 00:43:19 +0000 (02:43 +0200)]
lib.sh: Don't require perl in installed(), instead use awk.

14 years agolib.sh: Fix installed() for which with no output in case of error.
Simon Ruderich [Sun, 14 Mar 2010 00:13:49 +0000 (01:13 +0100)]
lib.sh: Fix installed() for which with no output in case of error.

14 years agolib.sh: Add support for less capable sh/test.
Simon Ruderich [Sun, 7 Mar 2010 21:03:53 +0000 (22:03 +0100)]
lib.sh: Add support for less capable sh/test.

14 years agolib.sh: Add support for Solaris to os().
Simon Ruderich [Sun, 7 Mar 2010 21:00:34 +0000 (22:00 +0100)]
lib.sh: Add support for Solaris to os().

14 years agotests/lib.sh.test: Use return instead of exit in a subshell.
Simon Ruderich [Sun, 7 Mar 2010 20:59:03 +0000 (21:59 +0100)]
tests/lib.sh.test: Use return instead of exit in a subshell.

14 years agolib.sh: Documentation cleanup.
Simon Ruderich [Sun, 7 Mar 2010 20:57:58 +0000 (21:57 +0100)]
lib.sh: Documentation cleanup.

14 years agotests/run.sh: Don't require diff -N.
Simon Ruderich [Sun, 7 Mar 2010 19:55:19 +0000 (20:55 +0100)]
tests/run.sh: Don't require diff -N.

14 years agolib.sh: Improve installed() to work with more which.
Simon Ruderich [Sun, 7 Mar 2010 20:49:57 +0000 (21:49 +0100)]
lib.sh: Improve installed() to work with more which.

Also add tests to check for different which implementations.

14 years agoarchive.sh: Create a gzipped archive.
Simon Ruderich [Sun, 7 Mar 2010 15:18:12 +0000 (16:18 +0100)]
archive.sh: Create a gzipped archive.

14 years agoarchive.sh: Add, creates an archive of important files.
Simon Ruderich [Sun, 7 Mar 2010 15:15:07 +0000 (16:15 +0100)]
archive.sh: Add, creates an archive of important files.

14 years agosetup.sh: Remove git setup, now only setup.sh in each directory is run.
Simon Ruderich [Sun, 7 Mar 2010 15:07:27 +0000 (16:07 +0100)]
setup.sh: Remove git setup, now only setup.sh in each directory is run.

The setup stuff wasn't used and can be easily done by hand.

14 years agosetup.sh: Add support for find without -executable.
Simon Ruderich [Sun, 7 Mar 2010 15:06:20 +0000 (16:06 +0100)]
setup.sh: Add support for find without -executable.

14 years agoREADME: Minor doc fixes.
Simon Ruderich [Sun, 7 Mar 2010 15:05:41 +0000 (16:05 +0100)]
README: Minor doc fixes.

15 years agolib.sh: Minor documentation fixes.
Simon Ruderich [Wed, 5 Aug 2009 13:17:09 +0000 (15:17 +0200)]
lib.sh: Minor documentation fixes.

15 years agolib.sh: Add perl support to generate().
Simon Ruderich [Sun, 26 Jul 2009 22:12:54 +0000 (00:12 +0200)]
lib.sh: Add perl support to generate().

Also add test for this.

15 years agosetup.sh: Improve setup support.
Simon Ruderich [Wed, 3 Jun 2009 14:12:11 +0000 (16:12 +0200)]
setup.sh: Improve setup support.

A better find rule is used and the correct project path is printed (instead of
project/.git).

If a setup.sh shouldn't be used just remove the executable bit.

Also only existing setup.sh files are used. This prevents the "no such file or
directory: setup.sh" warning.

15 years agosetup.sh: Remove unnecessary check.
Simon Ruderich [Wed, 3 Jun 2009 14:06:41 +0000 (16:06 +0200)]
setup.sh: Remove unnecessary check.

This was introduced in fbc6b0059f5345e8974bd713dc041a4e39e18c73 when there was
a static list used for the projects. With find this is no longer necessary.

15 years agoREADME: Convert to asciidoc.
Simon Ruderich [Tue, 5 May 2009 14:45:43 +0000 (16:45 +0200)]
README: Convert to asciidoc.

15 years agolib.sh: Fix for less capable echo versions.
Simon Ruderich [Fri, 1 May 2009 19:51:32 +0000 (21:51 +0200)]
lib.sh: Fix for less capable echo versions.

This occurs with bash on Mac OS X 10.5 for example.

15 years agolib.sh: Documentation fix.
Simon Ruderich [Fri, 1 May 2009 19:15:31 +0000 (21:15 +0200)]
lib.sh: Documentation fix.

15 years agolib.sh: generate() displays options again.
Simon Ruderich [Thu, 16 Apr 2009 12:23:12 +0000 (14:23 +0200)]
lib.sh: generate() displays options again.

This was removed in 2b996dfbed52a0ec1592b4820990f97b5147b2d4.

15 years agolib.sh: Add generate() which replaces m4().
Simon Ruderich [Mon, 13 Apr 2009 19:02:54 +0000 (21:02 +0200)]
lib.sh: Add generate() which replaces m4().

generate() generates files with m4, awk or simply copies it.

Add lib.m4 which provides the macro(s) formerly provided by m4(). Use
include(../lib.m4) to load it.

Also rename setup_warning() to warning().

15 years agolib.sh: Move warning code to own function.
Simon Ruderich [Tue, 7 Apr 2009 22:44:55 +0000 (00:44 +0200)]
lib.sh: Move warning code to own function.

15 years agosetup.sh: Be more compatible.
Simon Ruderich [Tue, 7 Apr 2009 22:13:34 +0000 (00:13 +0200)]
setup.sh: Be more compatible.

15 years agosync.sh: Be more compatible.
Simon Ruderich [Tue, 31 Mar 2009 15:18:36 +0000 (17:18 +0200)]
sync.sh: Be more compatible.

15 years agoREADME: Fix typo and update.
Simon Ruderich [Tue, 31 Mar 2009 15:14:57 +0000 (17:14 +0200)]
README: Fix typo and update.

15 years agolib.sh: Fix m4() to work with arguments with spaces.
Simon Ruderich [Sun, 15 Mar 2009 14:26:26 +0000 (15:26 +0100)]
lib.sh: Fix m4() to work with arguments with spaces.

Also added tests for this.

15 years agotests: Add test for m4() with multiple arguments.
Simon Ruderich [Sun, 15 Mar 2009 13:51:59 +0000 (14:51 +0100)]
tests: Add test for m4() with multiple arguments.

15 years agolib.sh: Add Gentoo support to os().
Simon Ruderich [Mon, 16 Mar 2009 15:36:25 +0000 (16:36 +0100)]
lib.sh: Add Gentoo support to os().

15 years agosync.sh: Status also displays unpushed commits.
Simon Ruderich [Sun, 1 Mar 2009 15:36:46 +0000 (16:36 +0100)]
sync.sh: Status also displays unpushed commits.

15 years agotests: Add tests for m4() in lib.sh.
Simon Ruderich [Sun, 1 Mar 2009 15:31:37 +0000 (16:31 +0100)]
tests: Add tests for m4() in lib.sh.

15 years agolib.sh: m4() define useful macros.
Simon Ruderich [Sun, 1 Mar 2009 15:19:29 +0000 (16:19 +0100)]
lib.sh: m4() define useful macros.

At the moment only IF and FI are defined which can be used for easy checking
of variables. They use the ifelse() macro.

15 years agolib.sh: Add os function which returns current OS.
Simon Ruderich [Sun, 1 Mar 2009 15:17:42 +0000 (16:17 +0100)]
lib.sh: Add os function which returns current OS.

Works on Debian and Mac OS X at the moment.

15 years agosync.sh: Status is the default command now.
Simon Ruderich [Sun, 1 Mar 2009 14:30:18 +0000 (15:30 +0100)]
sync.sh: Status is the default command now.

It was fetch, but this was rather unintuitive.

15 years agoAdd Vim modeline to lib.sh.test.
Simon Ruderich [Tue, 24 Feb 2009 21:09:06 +0000 (22:09 +0100)]
Add Vim modeline to lib.sh.test.

15 years agoAdd tests for BSD which on Mac OS X.
Simon Ruderich [Tue, 24 Feb 2009 21:05:04 +0000 (22:05 +0100)]
Add tests for BSD which on Mac OS X.

This is additional to 4cb251564b860a64b316aba2cb3ab376ce6c36de.

15 years agoFix installed() in setup.sh on Mac OS X.
Simon Ruderich [Tue, 24 Feb 2009 20:18:35 +0000 (21:18 +0100)]
Fix installed() in setup.sh on Mac OS X.

which on Mac OS X doesn't use proper exit code.

Also test for ls instead of which as it caused problems. I have no idea why.

15 years agoAdd installed() function to check if a program exists.
Simon Ruderich [Mon, 23 Feb 2009 17:49:09 +0000 (11:49 -0600)]
Add installed() function to check if a program exists.

This can be used in setup.sh functions so links are only installed for
applications which exist on the machine.

Also add tests for the function.

15 years agoAbort if the fetch fails in setup.sh.
Simon Ruderich [Sat, 21 Feb 2009 23:07:17 +0000 (17:07 -0600)]
Abort if the fetch fails in setup.sh.

This prevents that the push rule is added multiple times to .git/config if a
fetch failed.

15 years agosetup.sh runs gc on newly created repositories.
Simon Ruderich [Sat, 21 Feb 2009 23:04:43 +0000 (17:04 -0600)]
setup.sh runs gc on newly created repositories.

15 years agosetup.sh removes the remote if fetching was unsuccessful.
Simon Ruderich [Sat, 21 Feb 2009 23:03:36 +0000 (17:03 -0600)]
setup.sh removes the remote if fetching was unsuccessful.

This makes fixing the remote easier as it's not necessary to remove it before
trying to add it again.

15 years agosetup.sh can create repositories and setup remotes.
Simon Ruderich [Sat, 21 Feb 2009 22:46:43 +0000 (16:46 -0600)]
setup.sh can create repositories and setup remotes.

See the source for more information.

15 years agoFix leaking a variable in lib.sh.
Simon Ruderich [Sat, 21 Feb 2009 22:27:08 +0000 (16:27 -0600)]
Fix leaking a variable in lib.sh.

15 years agoFind git directories in setup.sh automatically.
Simon Ruderich [Sat, 21 Feb 2009 01:02:54 +0000 (19:02 -0600)]
Find git directories in setup.sh automatically.

15 years agoImprove documentation in setup.sh.
Simon Ruderich [Sat, 21 Feb 2009 00:42:28 +0000 (18:42 -0600)]
Improve documentation in setup.sh.

15 years agoFix doc typo in setup.sh.
Simon Ruderich [Sat, 21 Feb 2009 00:14:21 +0000 (18:14 -0600)]
Fix doc typo in setup.sh.

15 years agoMerge commit 'rammstein/master'
Simon Ruderich [Wed, 18 Feb 2009 20:03:43 +0000 (21:03 +0100)]
Merge commit 'rammstein/master'

Conflicts:

sync.sh

15 years agoRun status after a fetch in sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 23:59:28 +0000 (00:59 +0100)]
Run status after a fetch in sync.sh.

So new changes are easily detected.

15 years agoRemove ".git" from repository output in sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 23:50:17 +0000 (00:50 +0100)]
Remove ".git" from repository output in sync.sh.

Also improve status output.

15 years agoOnly print status output if git log did in sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 20:01:03 +0000 (21:01 +0100)]
Only print status output if git log did in sync.sh.

15 years agoAdd status method to sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 19:33:09 +0000 (20:33 +0100)]
Add status method to sync.sh.

This displays commits not on master for each git repository.

15 years agoRemove an unnecessary check in sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 19:28:08 +0000 (20:28 +0100)]
Remove an unnecessary check in sync.sh.

This was a leftover from setup.sh but as sync.sh uses find to get the git
repositories they always exist.

15 years agoFix doc typo in sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 19:24:52 +0000 (20:24 +0100)]
Fix doc typo in sync.sh.

15 years agoAdd shortcuts to sync.sh
Simon Ruderich [Wed, 18 Feb 2009 19:22:43 +0000 (20:22 +0100)]
Add shortcuts to sync.sh

fe for fetch, pu for push. Also improve the usage output if a wrong method was
used.

15 years agoUpdate doc for sync.sh.
Simon Ruderich [Wed, 18 Feb 2009 19:19:27 +0000 (20:19 +0100)]
Update doc for sync.sh.

15 years agosync.sh supports pushing to remotes.
Simon Ruderich [Wed, 18 Feb 2009 19:17:37 +0000 (20:17 +0100)]
sync.sh supports pushing to remotes.

`sync.sh` or `sync.sh fetch` fetches, `sync.sh push` pushes to all remotes.

15 years agoAdd sync.sh which fetches all remote branches.
Simon Ruderich [Wed, 18 Feb 2009 18:51:07 +0000 (19:51 +0100)]
Add sync.sh which fetches all remote branches.

All remote branches of all git repositories in or under this directory are
fetched.

15 years agoUse setup.sh instead of Makefile.
Simon Ruderich [Wed, 18 Feb 2009 17:21:29 +0000 (18:21 +0100)]
Use setup.sh instead of Makefile.

This was done as shell scripts are far more expandable than Makefiles.

link.sh and m4.sh were converted to functions and stored in lib.sh. The
subdirectories include it and call link() and m4() when necessary.

As the subdirectories also no longer use Makefiles for the setup task, the new
setup.sh scripts calls their setup.sh scripts.

15 years agoAdd better debug output to m4.sh and link.sh.
Simon Ruderich [Wed, 18 Feb 2009 15:56:01 +0000 (16:56 +0100)]
Add better debug output to m4.sh and link.sh.

15 years agoFix typo in m4.sh.
Simon Ruderich [Wed, 18 Feb 2009 15:40:23 +0000 (16:40 +0100)]
Fix typo in m4.sh.

15 years agoAdd setup support.
Simon Ruderich [Tue, 17 Feb 2009 15:18:21 +0000 (16:18 +0100)]
Add setup support.

The Makefile contains a setup target which runs setup in the subdirectories.

15 years agoUpdate README for change 856e63f63eb829a53ae5f6f6957d93717a561f86.
Simon Ruderich [Mon, 16 Feb 2009 14:10:40 +0000 (15:10 +0100)]
Update README for change 856e63f63eb829a53ae5f6f6957d93717a561f86.

15 years agoFix minor typo in README.
Simon Ruderich [Mon, 16 Feb 2009 14:09:39 +0000 (15:09 +0100)]
Fix minor typo in README.

15 years agoAdd m4.sh to process files with m4.
Simon Ruderich [Mon, 16 Feb 2009 13:14:21 +0000 (14:14 +0100)]
Add m4.sh to process files with m4.

The syntax is `m4.sh filename args-to-m4` which processes filename.m4 and
writes it to filename. Additional arguments are passed to m4.

This script differs from just calling m4 that it writes the header "Do not
edit this file" to the generated file to prevent accidental changes.

15 years agoAdd link.sh to create symbolic links to conf files.
Simon Ruderich [Sun, 15 Feb 2009 16:23:01 +0000 (17:23 +0100)]
Add link.sh to create symbolic links to conf files.

It's used by Makefiles in subdirectories (like mail, shell, etc.) to create
symbolic links in ~/ to their configuration files so all configuration data
can be kept in one place.

15 years agoInitial import.
Simon Ruderich [Sun, 15 Feb 2009 16:19:51 +0000 (17:19 +0100)]
Initial import.

Contains only README at the moment.