Two fixes for OS X.
authorChris Hanson <org/chris-hanson/cph>
Sat, 20 Jan 2007 03:50:06 +0000 (03:50 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 20 Jan 2007 03:50:06 +0000 (03:50 +0000)
v7/dist/make-src-files

index 4083653e9b98bdb2e27d946424bd2d81a43da575..ba99538ddeae7d96e0144b441735b7c5dfefcdd0 100755 (executable)
@@ -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}"