source: people/munepi/scripts/emacs-snapshot.sh @ 2350

Revision 2350, 729 bytes checked in by munepi, 14 years ago (diff)

updated some scripts

  • Property svn:executable set to *
RevLine 
[2350]1#!/bin/bash
[758]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)
[2350]15#SNAPDATE=$(date +%Y%m%d)
16SNAPDATE_BZR=2010-12-10 && SNAPDATE=$(echo $SNAPDATE_BZR | sed s/-//g)
[758]17
18cd "$tmp"
[2350]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 -
[758]22PKG_VER=$PACKAGE_VERSION
[2350]23PKG=emacs-${PKG_VER}.bzr${SNAPDATE}
[758]24PKG_DIR=emacs-${PKG_VER}
[2350]25[ -d emacs/.bzr ] && rm -rf emacs/.bzr
26[ -f emacs/.bzrignore ] && rm -f emacs/.bzrignore
[758]27mv emacs ${PKG_DIR}
[2350]28tar Jcfp ${pwd}/${PKG}.tar.xz ${PKG_DIR}
[758]29cd ${pwd}
30exit
Note: See TracBrowser for help on using the repository browser.