]>
ruderich.org/simon Gitweb - config/dotfiles.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Simon Ruderich [Mon, 29 Mar 2010 00:52:29 +0000 (02:52 +0200)]
lib.sh: Add support for FreeBSD to os().
Simon Ruderich [Mon, 29 Mar 2010 00:48:04 +0000 (02:48 +0200)]
lib.sh: Use simpler version in installed() using cut.
Simon Ruderich [Mon, 29 Mar 2010 00:43:19 +0000 (02:43 +0200)]
lib.sh: Don't require perl in installed(), instead use awk.
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.
Simon Ruderich [Sun, 7 Mar 2010 21:03:53 +0000 (22:03 +0100)]
lib.sh: Add support for less capable sh/test.
Simon Ruderich [Sun, 7 Mar 2010 21:00:34 +0000 (22:00 +0100)]
lib.sh: Add support for Solaris to os().
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.
Simon Ruderich [Sun, 7 Mar 2010 20:57:58 +0000 (21:57 +0100)]
lib.sh: Documentation cleanup.
Simon Ruderich [Sun, 7 Mar 2010 19:55:19 +0000 (20:55 +0100)]
tests/run.sh: Don't require diff -N.
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.
Simon Ruderich [Sun, 7 Mar 2010 15:18:12 +0000 (16:18 +0100)]
archive.sh: Create a gzipped archive.
Simon Ruderich [Sun, 7 Mar 2010 15:15:07 +0000 (16:15 +0100)]
archive.sh: Add, creates an archive of important files.
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.
Simon Ruderich [Sun, 7 Mar 2010 15:06:20 +0000 (16:06 +0100)]
setup.sh: Add support for find without -executable.
Simon Ruderich [Sun, 7 Mar 2010 15:05:41 +0000 (16:05 +0100)]
README: Minor doc fixes.
Simon Ruderich [Wed, 5 Aug 2009 13:17:09 +0000 (15:17 +0200)]
lib.sh: Minor documentation fixes.
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.
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.
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.
Simon Ruderich [Tue, 5 May 2009 14:45:43 +0000 (16:45 +0200)]
README: Convert to asciidoc.
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.
Simon Ruderich [Fri, 1 May 2009 19:15:31 +0000 (21:15 +0200)]
lib.sh: Documentation fix.
Simon Ruderich [Thu, 16 Apr 2009 12:23:12 +0000 (14:23 +0200)]
lib.sh: generate() displays options again.
This was removed in
2b996dfbed52a0ec1592b4820990f97b5147b2d4 .
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().
Simon Ruderich [Tue, 7 Apr 2009 22:44:55 +0000 (00:44 +0200)]
lib.sh: Move warning code to own function.
Simon Ruderich [Tue, 7 Apr 2009 22:13:34 +0000 (00:13 +0200)]
setup.sh: Be more compatible.
Simon Ruderich [Tue, 31 Mar 2009 15:18:36 +0000 (17:18 +0200)]
sync.sh: Be more compatible.
Simon Ruderich [Tue, 31 Mar 2009 15:14:57 +0000 (17:14 +0200)]
README: Fix typo and update.
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.
Simon Ruderich [Sun, 15 Mar 2009 13:51:59 +0000 (14:51 +0100)]
tests: Add test for m4() with multiple arguments.
Simon Ruderich [Mon, 16 Mar 2009 15:36:25 +0000 (16:36 +0100)]
lib.sh: Add Gentoo support to os().
Simon Ruderich [Sun, 1 Mar 2009 15:36:46 +0000 (16:36 +0100)]
sync.sh: Status also displays unpushed commits.
Simon Ruderich [Sun, 1 Mar 2009 15:31:37 +0000 (16:31 +0100)]
tests: Add tests for m4() in lib.sh.
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.
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.
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.
Simon Ruderich [Tue, 24 Feb 2009 21:09:06 +0000 (22:09 +0100)]
Add Vim modeline to lib.sh.test.
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 .
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.
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.
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.
Simon Ruderich [Sat, 21 Feb 2009 23:04:43 +0000 (17:04 -0600)]
setup.sh runs gc on newly created repositories.
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.
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.
Simon Ruderich [Sat, 21 Feb 2009 22:27:08 +0000 (16:27 -0600)]
Fix leaking a variable in lib.sh.
Simon Ruderich [Sat, 21 Feb 2009 01:02:54 +0000 (19:02 -0600)]
Find git directories in setup.sh automatically.
Simon Ruderich [Sat, 21 Feb 2009 00:42:28 +0000 (18:42 -0600)]
Improve documentation in setup.sh.
Simon Ruderich [Sat, 21 Feb 2009 00:14:21 +0000 (18:14 -0600)]
Fix doc typo in setup.sh.
Simon Ruderich [Wed, 18 Feb 2009 20:03:43 +0000 (21:03 +0100)]
Merge commit 'rammstein/master'
Conflicts:
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.
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.
Simon Ruderich [Wed, 18 Feb 2009 20:01:03 +0000 (21:01 +0100)]
Only print status output if git log did in 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.
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.
Simon Ruderich [Wed, 18 Feb 2009 19:24:52 +0000 (20:24 +0100)]
Fix doc typo in 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.
Simon Ruderich [Wed, 18 Feb 2009 19:19:27 +0000 (20:19 +0100)]
Update doc for sync.sh.
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.
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.
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.
Simon Ruderich [Wed, 18 Feb 2009 15:56:01 +0000 (16:56 +0100)]
Add better debug output to m4.sh and link.sh.
Simon Ruderich [Wed, 18 Feb 2009 15:40:23 +0000 (16:40 +0100)]
Fix typo in m4.sh.
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.
Simon Ruderich [Mon, 16 Feb 2009 14:10:40 +0000 (15:10 +0100)]
Simon Ruderich [Mon, 16 Feb 2009 14:09:39 +0000 (15:09 +0100)]
Fix minor typo in README.
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.
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.
Simon Ruderich [Sun, 15 Feb 2009 16:19:51 +0000 (17:19 +0100)]
Initial import.
Contains only README at the moment.