From 21b5a837fa18b97e734ab18a178a803944135e95 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 20 Jan 2007 03:50:06 +0000 Subject: [PATCH] Two fixes for OS X. --- v7/dist/make-src-files | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/v7/dist/make-src-files b/v7/dist/make-src-files index 4083653e9..ba99538dd 100755 --- a/v7/dist/make-src-files +++ b/v7/dist/make-src-files @@ -1,6 +1,6 @@ #!/bin/sh -# $Id: make-src-files,v 1.25 2006/09/10 01:41:25 cph Exp $ +# $Id: make-src-files,v 1.26 2007/01/20 03:50:06 cph Exp $ # # Copyright 2000,2001,2002,2003,2005,2006 Massachusetts Institute of Technology # @@ -37,7 +37,7 @@ if [ "${VERSION}" = "snapshot" ]; then SNAPSHOT_P=true PREFIX="$(get_release_prefix $(date +%Y%m%d))" TAG_FLAG="-D" - TAG=$(date --iso-8601=seconds) + TAG=now else if [ "${VERSION}" = "standard" ]; then VERSION="$(get_release)" @@ -95,7 +95,9 @@ tar cvzf "${ucfile}" "${PREFIX}/src/COPYING" "${PREFIX}/src/microcode" chmod -w changelog.txt "${tarfile}" "${ucfile}" rm -rf "${PREFIX}/src/lib" -symlinks -rd "${PREFIX}" +for S in $(find ${PREFIX} -type l); do + [ ! -r "${S}" ] && rm -f "${S}" +done zip -rl "${zipfile}" "${PREFIX}" chmod -w "${zipfile}" -- 2.25.1