003 File Manager
Current Path:
/usr/src/contrib/bmake
usr
/
src
/
contrib
/
bmake
/
📁
..
📄
ChangeLog
(110.6 KB)
📄
FILES
(23.09 KB)
📄
LICENSE
(2.58 KB)
📄
Makefile
(4.57 KB)
📄
Makefile.config.in
(520 B)
📁
PSD.doc
📄
README
(1.46 KB)
📄
VERSION
(63 B)
📄
aclocal.m4
(1.89 KB)
📄
arch.c
(30.67 KB)
📄
bmake.1
(65.42 KB)
📄
bmake.cat1
(80.42 KB)
📄
boot-strap
(10.85 KB)
📄
bsd.after-import.mk
(3.9 KB)
📄
buf.c
(6.7 KB)
📄
buf.h
(5.09 KB)
📄
compat.c
(18.84 KB)
📄
cond.c
(33.51 KB)
📄
config.h.in
(8.83 KB)
📄
configure
(201.92 KB)
📄
configure.in
(10.66 KB)
📄
dir.c
(44.23 KB)
📄
dir.h
(4.61 KB)
📄
dirname.c
(3.11 KB)
📄
enum.c
(2.81 KB)
📄
enum.h
(8.46 KB)
📁
filemon
📄
find_lib.sh
(138 B)
📄
for.c
(12.15 KB)
📄
getopt.c
(4.78 KB)
📄
hash.c
(9.05 KB)
📄
hash.h
(6.11 KB)
📄
import.sh
(2.14 KB)
📄
install-sh
(3.8 KB)
📄
job.c
(76.85 KB)
📄
job.h
(7.05 KB)
📄
lst.c
(6.47 KB)
📄
lst.h
(6.85 KB)
📄
machine.sh
(2.18 KB)
📄
main.c
(52.56 KB)
📄
make-bootstrap.sh.in
(2.02 KB)
📄
make-conf.h
(5.64 KB)
📄
make.1
(65.55 KB)
📄
make.c
(39.48 KB)
📄
make.h
(25.84 KB)
📄
make_malloc.c
(2.54 KB)
📄
make_malloc.h
(2.15 KB)
📄
makefile.in
(282 B)
📄
meta.c
(40.12 KB)
📄
meta.h
(2.38 KB)
📄
metachar.c
(3.6 KB)
📄
metachar.h
(1.85 KB)
📁
missing
📁
mk
📄
mkdeps.sh
(7.27 KB)
📄
nonints.h
(11.82 KB)
📄
os.sh
(5.54 KB)
📄
parse.c
(80.74 KB)
📄
pathnames.h
(2.4 KB)
📄
ranlib.h
(1008 B)
📄
realpath.c
(5.06 KB)
📄
setenv.c
(4.64 KB)
📄
sigcompat.c
(8.46 KB)
📄
str.c
(10.2 KB)
📄
stresep.c
(2.93 KB)
📄
strlcpy.c
(1.74 KB)
📄
suff.c
(55.28 KB)
📄
targ.c
(15.81 KB)
📄
trace.c
(2.99 KB)
📄
trace.h
(1.83 KB)
📁
unit-tests
📄
util.c
(11.92 KB)
📄
var.c
(107.64 KB)
📄
wait.h
(2 KB)
Editing: install-sh
: # NAME: # install.sh - portable version of install(1) # # SYNOPSIS: # install [-CNcs] [-f flags] [-i errs] [-o owner] [-g group] [-m mode] file1 file2 ... # install -d [-i errs] [-o owner] [-g group] [-m mode] directory ... # # DESCRIPTION: # Compatible with BSD install(1). Except that '-c' is always # true and we always move an already installed target aside as # this is important on many systems. Recent BSD install(1) # versions have a '-b' option for this. # # # OPTIONS: # -b move previous target file aside (always true). # # -B "suffix" # use "suffix" instead of .old for saving existing target. # # -c copy rather than move the file into place (always true). # # -C compare. Only install if target is missing or # different. # # -N newer. Only install if target is missing or older. # # -s strip target # # -o "owner" # make target owned by "owner" # # -g "group" # make target group owned by "group" # # -m "mode" # set permissions to "mode" # # -f "flags" # Pass "flags" onto chflags(1) # # -i "errs" # Ignore errors from steps indicated by "errs" (``s,o,g,m''). # # BUGS: # The '-i' option is to save your sanity when 'bsd.prog.mk' # insists on haveing a '-o' "owner" option which is doomed to # fail on many systems. We ignore '-b', '-B' and '-c' options. # # AUTHOR: # Simon J. Gerraty <sjg@quick.com.au> # # RCSid: # $Id: install-sh,v 1.18 2001/03/16 17:33:02 sjg Exp $ # # @(#) Copyright (c) 1993 Simon J. Gerraty # # This file is provided in the hope that it will # be of use. There is absolutely NO WARRANTY. # Permission to copy, redistribute or otherwise # use this file is hereby granted provided that # the above copyright notice and this notice are # left intact. # # Please send copies of changes and bug-fixes to: # sjg@quick.com.au # set -- `getopt B:bpxCNcsdo:g:m:i:f: $*` Mydir=`dirname $0` [ -s $Mydir/.installrc ] && . $Mydir/.installrc owner=: group=: mode=: strip=: mkdirs= compare=: newer=: chflags=: LS1= CP_P= while [ $# -gt 1 ] do case $1 in --) shift; break;; -p) CP_P=-p;; -x) set -x;; -B) OLD_EXT=$2; shift;; -C) compare=Different;; -N) newer=Newer; # check if /bin/ls supports -1 /bin/ls -1 $0 >/dev/null 2>&1 && LS1=1 ;; -o) owner="${CHOWN:-chown} $2 "; shift;; -g) group="${CHGRP:-chgrp} $2 "; shift;; -m) mode="${CHMOD:-chmod} $2 "; shift;; -s) strip=${STRIP:-strip};; -d) mkdirs="mkdir -p";; -i) ignore_err="$ignore_err$2"; shift;; -f) chflags="${CHFLAGS:-chflags} $2 "; shift;; esac shift done Newer() { n=`/bin/ls -t$LS1 $* 2>/dev/null | head -1` [ $1 = $n ] } Different() { cmp -s $* [ $? != 0 ] } Err() { case "$ignore_err" in *$1*) ;; *) exit 1;; esac } Setem() { # the order is important if [ ! -d $1 ]; then $strip $1 || Err s fi $group $1 || Err g $owner $1 || Err o $mode $1 || Err m $chflags $1 || Err f return 0 } # a bug in HP-UX's /bin/sh, means we need to re-set $* # after any calls to add_path() args="$*" # all this just for chown! add_path () { [ -d $1 ] && eval ${2:-PATH}="\$${2:-PATH}:$1"; } add_path /etc add_path /usr/etc add_path /sbin add_path /usr/sbin # restore saved $* set -- $args # make directories if needed # and ensure mode etc are as desired if [ "$mkdirs" ]; then for d in $* do [ ! -d $d ] && $mkdirs $d Setem $d done exit 0 # that's all we do fi # install files if [ $# -gt 2 ]; then dest_dir=yes elif [ $# -eq 1 ]; then echo "what should I do with $*?" >&2 exit 1 fi # get list of files while [ $# -gt 1 ] do files="$files $1" shift done # last one is dest dest=$1 shift if [ "$dest_dir" = yes -a ! -d $dest ]; then echo "no directory $dest" >&2 exit 1 fi for f in $files do b=`basename $f` if [ -d $dest ]; then t=$dest/$b else t=$dest fi $newer $f $t || continue $compare $f $t || continue [ -f $t ] && { mv -f $t $t.old || exit 1; } { cp $CP_P $f $t && Setem $t; } || exit 1 done exit 0
Upload File
Create Folder