Revision 5855,
740 bytes
checked in by munepi, 13 years ago
(diff) |
updated wl-snapshot.sh
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | #!/bin/bash -x |
---|
2 | |
---|
3 | set -e |
---|
4 | |
---|
5 | tmp=$(mktemp -d) |
---|
6 | #tmp=$(pwd)/tmp |
---|
7 | |
---|
8 | trap cleanup EXIT |
---|
9 | cleanup() { |
---|
10 | set +e |
---|
11 | [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" |
---|
12 | } |
---|
13 | |
---|
14 | unset CDPATH |
---|
15 | pwd=$(pwd) |
---|
16 | |
---|
17 | dirname=wanderlust |
---|
18 | pkgname=wl |
---|
19 | |
---|
20 | cd "$tmp" |
---|
21 | cvs -d :pserver:anonymous@cvs.m17n.org:/cvs/root checkout $dirname |
---|
22 | cd $dirname |
---|
23 | cat>version.el<<EOF |
---|
24 | (load-file "elmo/elmo-version.el") |
---|
25 | (princ (concat elmo-version "\n")) |
---|
26 | EOF |
---|
27 | #VERSION=$(emacs --quick --script version.el 2>/dev/null) |
---|
28 | VERSION=$(emacs --script version.el 2>/dev/null) |
---|
29 | rm -f version.el |
---|
30 | REVISION=$(date +%Y%m%d) |
---|
31 | find . -type d -name CVS -print0 | xargs -0r rm -rf |
---|
32 | cd .. |
---|
33 | mv $dirname ${pkgname}-${VERSION} |
---|
34 | tar Jcf "$pwd"/${pkgname}-${VERSION}.cvs${REVISION}.tar.xz ${pkgname}-${VERSION} |
---|
35 | cd ${pwd} >/dev/null |
---|
36 | |
---|
37 | exit |
---|
Note: See
TracBrowser
for help on using the repository browser.