Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update to the current (Snow Leopard, Git) build script.

  • Loading branch information...
commit 343de17f2dc756dc52f00e36ce63512334cfa0a6 1 parent fec23fa
@ieure authored
Showing with 14 additions and 11 deletions.
  1. +14 −11 build.sh
View
25 build.sh
@@ -1,27 +1,30 @@
#! /bin/bash
# -*- coding: utf-8 -*-
#
-# Create a nightly Emacs CVS build
+# Create a nightly Emacs build from Git.
#
-# Author: Ian Eure <ian.eure@gmail.com>
+# © 2008, 2009.
+# Author: Ian Eure <ieure@blarg.net>
#
+# $Id$
echo "Building @`date`" | tee -a build.log
-make extraclean
-rm -f nextstep/Cocoa*zip
+git reset --hard
+git clean -d -f
STRINGS=nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings
-cvs diff configure.in $STRINGS | patch -p0 -R
-cvs -q up
+git remote update
+git rebase origin/master
DATE=`date -u +"%Y-%m-%d %H:%M:%S %Z"`
DAY=`date -u +"%Y-%m-%d"`
ORIG=`grep ^AC_INIT configure.in`
VNUM=`echo $ORIG | cut -d\ -f2-999 | sed s/\)$//`
-VERS="$VNUM CVS $DATE"
-ZIPF="Cocoa Emacs ${VNUM} CVS ${DAY}.zip"
+REV=`git log --no-color --pretty=format:%H origin/master^..origin/master`
+VERS="$VNUM Git $REV $DATE"
+ZIPF="Cocoa Emacs ${VNUM} Git $REV ${DAY}.zip"
sed "s/$VNUM,/$VERS,/" < $STRINGS > ${STRINGS}.tmp
mv ${STRINGS}.tmp $STRINGS
-./configure --with-ns
-make -j3 && make install
+CFLAGS="-pipe -march=nocona" ./configure --build i686-apple-darwin10.0.0 \
+ --without-dbus --with-ns
+make bootstrap -j3 && make install
cd nextstep
zip -qr9 "$ZIPF" Emacs.app
-cd ..
Please sign in to comment.
Something went wrong with that request. Please try again.