source: projects/specs/trunk/e/emacs24/emacs-snapshot.sh @ 2599

Revision 2599, 729 bytes checked in by munepi, 13 years ago (diff)

updated emacs, emacs24, yatex, howm

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3set -e
4
5tmp=$(mktemp -d)
6
7trap cleanup EXIT
8cleanup() {
9    set +e
10    [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp"
11}
12
13unset CDPATH
14pwd=$(pwd)
15#SNAPDATE=$(date +%Y%m%d)
16SNAPDATE_BZR=2011-01-28 && SNAPDATE=$(echo $SNAPDATE_BZR | sed s/-//g)
17
18cd "$tmp"
19#bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk emacs
20bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk -r date:$SNAPDATE_BZR emacs
21cd emacs && eval $(autoconf configure.in | egrep '^PACKAGE_VERSION=') && cd -
22PKG_VER=$PACKAGE_VERSION
23PKG=emacs-${PKG_VER}.bzr${SNAPDATE}
24PKG_DIR=emacs-${PKG_VER}
25[ -d emacs/.bzr ] && rm -rf emacs/.bzr
26[ -f emacs/.bzrignore ] && rm -f emacs/.bzrignore
27mv emacs ${PKG_DIR}
28tar Jcfp ${pwd}/${PKG}.tar.xz ${PKG_DIR}
29cd ${pwd}
30exit
Note: See TracBrowser for help on using the repository browser.