Revision 758,
1.2 KB
checked in by munepi, 14 years ago
(diff) |
mkdir scripts
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[758] | 1 | #!/bin/bash -x |
---|
| 2 | |
---|
| 3 | set -e |
---|
| 4 | |
---|
| 5 | tmp=$(mktemp -d) |
---|
| 6 | |
---|
| 7 | trap cleanup EXIT |
---|
| 8 | cleanup() { |
---|
| 9 | set +e |
---|
| 10 | [ -z "$tmp" -o ! -d "$tmp" ] || rm -rf "$tmp" |
---|
| 11 | } |
---|
| 12 | |
---|
| 13 | unset CDPATH |
---|
| 14 | pwd=$(pwd) |
---|
| 15 | SNAPDATE=`date +%Y%m%d` |
---|
| 16 | #SNAPDATE_CVS=2009-03-05 |
---|
| 17 | #SNAPDATE=$(echo $SNAPDATE_CVS | sed s/-//g) |
---|
| 18 | |
---|
| 19 | cd "$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 |
---|
| 22 | cvs -z3 -d:pserver:anonymous@cvs.sv.gnu.org:/sources/emacs co emacs |
---|
| 23 | cd emacs && eval `autoconf configure.in | egrep '^PACKAGE_VERSION='` && cd - |
---|
| 24 | PKG_VER=$PACKAGE_VERSION |
---|
| 25 | PKG=emacs-${PKG_VER}.cvs${SNAPDATE} |
---|
| 26 | PKG_DIR=emacs-${PKG_VER} |
---|
| 27 | mv emacs ${PKG_DIR} |
---|
| 28 | tar jcfp ${pwd}/${PKG}.tar.bz2 ${PKG_DIR} |
---|
| 29 | cd ${pwd} |
---|
| 30 | exit |
---|
| 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.