Reduce size of snapshots and fix path

Joachim Nilsson joachim.nilsson at vmlinux.org
Sat Aug 23 13:45:11 UTC 2008


Hi!

I noticed that the daily snapshot archives have the .svn directories
included.  Another minor annoyance was that the snaphot date was not
included in the containing directory.

Snapshots without .svn directories are apx 40% smaller and appending
the date to the directory makes it easier for users to automate the
download and acceptance testing. 

Below is a new cronjob script which does "svn export" to uClibc-$DATE
and uploads the resulting archive to /var/www/downloads/snapshots/.

Do what you want with it, the license is the same as OpenBSD recommends
these days.  

Regards
 /Jocke

#!/bin/sh
#
# Export daily snapshot from uClibc trunk
# 
# Copyright (c) 2008  Joachim Nilsson <joachim.nilsson at vmlinux.org>
# 
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# 
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

TMP=/tmp
REPO=svn://uclibc.org
BRANCH=/trunk/uClibc 
DIR=uClibc-`date +"%Y%m%d"`
ARCHIVE=${DIR}.tar.bz2
SNAPDIR=/var/www/downloads/snapshots/

cd ${TMP}
svn export ${REPO}/${BRANCH} ${DIR} >/dev/null
tar cfj ${ARCHIVE} ${DIR}
rm -rf ${DIR}
mv ${ARCHIVE} ${SNAPDIR}
cd -
true



More information about the uClibc mailing list