blob: d2746938fe6bcff5335f787093bb9cb50747d336 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/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
if [[ -n $(echo packages/zsh/etc/local*(N)) ]] {
rm -f packages/zsh/etc/local*
}
(
export HOME=$PWD
cd packages/zsh
checklinks -p etc=packages/zsh/etc
)
tar cjf $result .
echo $result
cd ..
rm -rf $dir
|