diff options
author | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:53:27 -0400 |
---|---|---|
committer | Chet Ramey <chet.ramey@case.edu> | 2022-09-26 11:53:27 -0400 |
commit | f7a382fd09319b20ef4435b9b554183b605468c1 (patch) | |
tree | 445f363418c287fc9994c7b51d412e6765e3450a /support/mkdist | |
parent | 5263c0d88064fda96292335d12eec1733f91cdc9 (diff) | |
download | readline-f7a382fd09319b20ef4435b9b554183b605468c1.tar.gz |
readline-8.2 distribution sources and documentationreadline-8.2
Diffstat (limited to 'support/mkdist')
-rw-r--r--[-rwxr-xr-x] | support/mkdist | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/support/mkdist b/support/mkdist index 282431d..463bdc1 100755..100644 --- a/support/mkdist +++ b/support/mkdist @@ -78,7 +78,7 @@ fi dirmode=755 filmode=644 -while read fname type mode +while read fname type mode rest do [ -z "$fname" ] && continue @@ -89,13 +89,24 @@ do case "$type" in d) mkdir $newdir/$fname ;; f) cp -p $SRCDIR/$fname $newdir/$fname ;; + F) cp $SRCDIR/$fname $newdir/$fname ;; s) ln -s $mode $newdir/$fname ; mode= ;; # symlink l) ln $mode $newdir/$fname ; mode= ;; # hard link + c) cp $SRCDIR/$mode $newdir/$fname ; mode=$filmode ;; # copy to new name *) echo "unknown file type $type" 1>&2 ;; esac + # allow trailing comments + case "$mode" in + \#*) mode= ;; + esac + if [ -n "$mode" ]; then chmod $mode $newdir/$fname + elif [ "$type" = "f" ]; then + chmod $filmode $newdir/$fname + elif [ "$type" = "d" ]; then + chmod $dirmode $newdir/$fname fi done < $MANIFEST |