]> ruderich.org/simon Gitweb - config/dotfiles.git/log
config/dotfiles.git
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.