Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: making distributions



Given we're now going to be making distributions in the common sourceforge
directories, it's idiotic to try too hard to get mkdisttree.sh to be
optimal anywhere else.  This simply comments out the `ln's in favour of
`cp's to get round the permissions problem with linking to other people's
files.  It also chmods away the sticky groups on the directories.

--- Util/mkdisttree.sh.old	Wed Apr  5 20:03:08 2000
+++ Util/mkdisttree.sh	Wed Apr  5 20:03:18 2000
@@ -63,10 +63,10 @@
 	$sdir_top/mkinstalldirs $disttree/$subdir || exit 1
 	for f in $deplist `test -z "$globlist" || ( cd $dir_top/$subdir && eval "echo $globlist")`; do
 	    if test -f $dir_top/$subdir/$f; then
-		ln $dir_top/$subdir/$f $disttree/$subdir/$f || \
+#		ln $dir_top/$subdir/$f $disttree/$subdir/$f || \
 		    cp -p $dir_top/$subdir/$f $disttree/$subdir/$f || exit 1
 	    elif test -f $sdir_top/$subdir/$f; then
-		ln $sdir_top/$subdir/$f $disttree/$subdir/$f || \
+#		ln $sdir_top/$subdir/$f $disttree/$subdir/$f || \
 		    cp -p $sdir_top/$subdir/$f $disttree/$subdir/$f || exit 1
 	    else
 		echo >&2 "$0: can't find file $subdir/$f"
@@ -84,4 +84,4 @@
     exit $status
 fi
 
-exec chmod -R a+rX,u+w,go-w $disttree
+exec chmod -R a+rX,u+w,g-s,go-w $disttree

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxxxxxxxxxxxxxxxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk



Messages sorted by: Reverse Date, Date, Thread, Author