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

Revision 758, 1.2 KB checked in by munepi, 14 years ago (diff)

mkdir scripts

  • Property svn:executable set to *
Line 
1#!/bin/bash -x
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)
15SNAPDATE=`date +%Y%m%d`
16#SNAPDATE_CVS=2009-03-05
17#SNAPDATE=$(echo $SNAPDATE_CVS | sed s/-//g)
18
19cd "$tmp"
20#cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs export -r HEAD emacs
21#cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs export -r :$SNAPDATE_CVS emacs
22cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs
23cd emacs && eval `autoconf configure.in | egrep '^PACKAGE_VERSION='` && cd -
24PKG_VER=$PACKAGE_VERSION
25PKG=emacs-${PKG_VER}.cvs${SNAPDATE}
26PKG_DIR=emacs-${PKG_VER}
27mv emacs ${PKG_DIR}
28tar jcfp ${pwd}/${PKG}.tar.bz2 ${PKG_DIR}
29cd ${pwd}
30exit
31
32# The source for this package was pulled from upstream's cvs. Use the following
33# comands to generate the tarball:
34# cvs -z3 -d:pserver:anonymous@cvs.savannah.gnu.org:/cvsroot/emacs export -r HEAD emacs
35# cd emacs && eval `autoconf configure.in | egrep '^PACKAGE_VERSION='` && cd -
36# mv emacs emacs-${PACKAGE_VERSION}
37# SNAPDATE=`date +%Y%m%d`
38# tar -czvf emacs-${PACKAGE_VERSION}-${SNAPDATE}.tar.gz emacs-${PACKAGE_VERSION}
39
Note: See TracBrowser for help on using the repository browser.