source: projects/specs/trunk/w/wl-beta/wl-snapshot.sh @ 5854

Revision 5854, 740 bytes checked in by munepi, 12 years ago (diff)

updated wl-snapshot.sh

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