diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-25 17:59:02 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-25 17:59:02 +0200 |
commit | 433095fcea1304fa16da2307b2570169cf019b01 (patch) | |
tree | 50e7697a21518e3b0fc9422df936c5a4d84494f0 /include | |
parent | e209b1b7434f6643c9350c0d8fab903c2353a5f3 (diff) |
Added export-zshrc help script
Diffstat (limited to 'include')
-rwxr-xr-x | include/export-zshrc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/export-zshrc b/include/export-zshrc new file mode 100755 index 0000000..15b6e0e --- /dev/null +++ b/include/export-zshrc @@ -0,0 +1,23 @@ +#!/usr/bin/env zsh +## Copyright © 2009 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> +setopt err_exit +result=/tmp/zsh-derf.tar.bz2 +dir=$(mktemp -dt) + +cd $dir +mkdir -p packages/zsh/etc + +cp -a ~/packages/zsh/etc packages/zsh +cp -a ~/packages/zsh/links packages/zsh +mkdir -p packages/zsh/provided +touch packages/zsh/provided/includes +( + export HOME=$PWD + cd packages/zsh + checklinks -p etc=packages/zsh/etc +) +tar cjf $result . +echo $result +cd .. +rm -rf $dir |