Revision: 14513
Author: adrian.chadd
Date: Mon Mar 29 05:05:21 2010
Log: Add a release building script for freebsd
http://code.google.com/p/lusca-cache/source/detail?r=14513
Added:
/branches/releng/freebsd
/branches/releng/freebsd/build-rel
=======================================
--- /dev/null
+++ /branches/releng/freebsd/build-rel Mon Mar 29 05:05:21 2010
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+WORKDIR=/tmp/lusca
+RELVER=$1
+
+mkdir -p ${WORKDIR} || exit 1
+
+svn export -r ${RELVER}
https://lusca-cache.googlecode.com/svn/branches/LUSCA_HEAD
${WORKDIR}/LUSCA_HEAD-r${RELVER} || exit 1
+
+# rewrite the AC_INIT LUSCA_HEAD entry in configure.in
+cat ${WORKDIR}/LUSCA_HEAD-r${RELVER}/configure.in |
sed "s...@lusca_head@LUSCA_HEAD-r${RELVER}@" >
${WORKDIR}/LUSCA_HEAD-r${RELVER}/configure.in.new || exit 1
+mv ${WORKDIR}/LUSCA_HEAD-r${RELVER}/configure.in.new
${WORKDIR}/LUSCA_HEAD-r${RELVER}/configure.in || exit 1
+
+# run autoconf/automake
+cd ${WORKDIR}/LUSCA_HEAD-r${RELVER} || exit 1
+sh bootstrap.sh || exit 1
+
+# generate tarball
+cd ${WORKDIR} || exit 1
+tar cvf LUSCA_HEAD-r${RELVER}.tar LUSCA_HEAD-r${RELVER} || exit 1
+gzip -9 LUSCA_HEAD-r${RELVER}.tar || exit 1
+
+# done!
--
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en.