2011-03-04 Michael Snyder <msnyder@vmware.com>
[deliverable/binutils-gdb.git] / readline / support / mkdist
index 0d3d69405993f808db8a30f44f37c076080b1986..06e6155f559f74d64111bb5e33e88e534bd77dd0 100755 (executable)
@@ -7,6 +7,24 @@
 # SRCDIR defaults to src
 # MANIFEST defaults to $SRCDIR/MANIFEST
 #
+# Chet Ramey
+# chet@po.cwru.edu
+
+# Copyright (C) 1996-2002 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
 
 SRCDIR=src
 ROOTNAME=bash
@@ -48,7 +66,7 @@ fi
 version=$1
 newdir=${ROOTNAME}-$version
 
-vmsg creating distribution for version $version in $newdir
+vmsg creating distribution for $ROOTNAME version $version in $newdir
 
 if [ ! -d $newdir ]; then
        mkdir $newdir || { echo $0: cannot make directory $newdir 1>&2 ; exit 1; }
@@ -68,6 +86,8 @@ do
        case "$type" in
        d)      mkdir $newdir/$fname ;;
        f)      cp -p $SRCDIR/$fname $newdir/$fname ;;
+       s)      ln -s $mode $newdir/$fname ; mode= ;;           # symlink
+       l)      ln $mode $newdir/$fname ; mode= ;;              # hard link
        *)      echo "unknown file type $type" 1>&2 ;;
        esac
 
This page took 0.024024 seconds and 4 git commands to generate.