003 File Manager
Current Path:
/usr/src/contrib/bc
usr
/
src
/
contrib
/
bc
/
📁
..
📄
.gitignore
(875 B)
📄
LICENSE.md
(5.23 KB)
📄
Makefile.in
(13.26 KB)
📄
NEWS.md
(41.76 KB)
📄
NOTICE.md
(306 B)
📄
README.md
(11.54 KB)
📄
RELEASE.md
(1.6 KB)
📄
configure
(41.41 KB)
📄
configure.sh
(41.41 KB)
📄
exec-install.sh
(1.89 KB)
📄
functions.sh
(6.59 KB)
📁
gen
📁
include
📄
karatsuba.py
(5.98 KB)
📄
link.sh
(1.71 KB)
📄
locale_install.sh
(5.3 KB)
📄
locale_uninstall.sh
(2.04 KB)
📁
locales
📄
manpage.sh
(3.31 KB)
📁
manuals
📄
release.sh
(12.97 KB)
📄
safe-install.sh
(1 KB)
📁
src
📁
tests
Editing: safe-install.sh
#!/bin/sh # # Written by Rich Felker, originally as part of musl libc. # Multi-licensed under MIT, 0BSD, and CC0. # # This is an actually-safe install command which installs the new # file atomically in the new location, rather than overwriting # existing files. # usage() { printf "usage: %s [-D] [-l] [-m mode] src dest\n" "$0" 1>&2 exit 1 } mkdirp= symlink= mode=755 while getopts Dlm: name ; do case "$name" in D) mkdirp=yes ;; l) symlink=yes ;; m) mode=$OPTARG ;; ?) usage ;; esac done shift $(($OPTIND - 1)) test "$#" -eq 2 || usage src=$1 dst=$2 tmp="$dst.tmp.$$" case "$dst" in */) printf "%s: %s ends in /\n", "$0" "$dst" 1>&2 ; exit 1 ;; esac set -C set -e if test "$mkdirp" ; then umask 022 case "$2" in */*) mkdir -p "${dst%/*}" ;; esac fi trap 'rm -f "$tmp"' EXIT INT QUIT TERM HUP umask 077 if test "$symlink" ; then ln -s "$1" "$tmp" else cat < "$1" > "$tmp" chmod "$mode" "$tmp" fi mv -f "$tmp" "$2" test -d "$2" && { rm -f "$2/$tmp" printf "%s: %s is a directory\n" "$0" "$dst" 1>&2 exit 1 } exit 0
Upload File
Create Folder