Browse Source

Properly license all nontrivial files

pull/24/merge
Andrew Waterman 8 years ago
parent
commit
16476bd821
  1. 34
      LICENSE.Batten
  2. 37
      LICENSE.SoftFloat
  3. 2
      Makefile.in
  4. 2
      aclocal.m4
  5. 2
      bbl/bbl.ac
  6. 2
      bbl/bbl.c
  7. 2
      bbl/bbl.lds
  8. 2
      bbl/bbl.mk.in
  9. 2
      bbl/logo.c
  10. 2
      bbl/payload.S
  11. 2
      bbl/raw_logo.S
  12. 2
      configure.ac
  13. 2
      dummy_payload/dummy_entry.S
  14. 2
      dummy_payload/dummy_payload.lds
  15. 2
      dummy_payload/dummy_payload.mk.in
  16. 2
      machine/bits.h
  17. 2
      machine/disabled_hart_mask.h
  18. 2
      machine/emulation.c
  19. 2
      machine/emulation.h
  20. 2
      machine/fdt.c
  21. 2
      machine/fdt.h
  22. 2
      machine/finisher.c
  23. 2
      machine/finisher.h
  24. 2
      machine/flush_icache.c
  25. 2
      machine/fp_emulation.c
  26. 2
      machine/fp_emulation.h
  27. 2
      machine/fp_ldst.c
  28. 2
      machine/htif.c
  29. 2
      machine/htif.h
  30. 2
      machine/machine.ac
  31. 2
      machine/machine.mk.in
  32. 2
      machine/mcall.h
  33. 2
      machine/minit.c
  34. 2
      machine/misaligned_ldst.c
  35. 2
      machine/mtrap.c
  36. 2
      machine/mtrap.h
  37. 2
      machine/muldiv_emulation.c
  38. 2
      machine/uart.c
  39. 2
      machine/uart.h
  40. 2
      machine/uart16550.c
  41. 2
      machine/uart16550.h
  42. 2
      machine/unprivileged_memory.h
  43. 2
      machine/vm.h
  44. 2
      pk/console.c
  45. 2
      pk/mmap.c
  46. 2
      pk/mmap.h
  47. 2
      pk/pk.ac
  48. 2
      pk/pk.c
  49. 2
      pk/pk.lds
  50. 2
      pk/pk.mk.in
  51. 520
      scripts/install-sh
  52. 238
      scripts/install.sh
  53. 2
      scripts/vcs-version.sh
  54. 2
      softfloat/8086/OLD-specialize.c
  55. 2
      softfloat/8086/OLD-specialize.h
  56. 2
      softfloat/8086/platform.h
  57. 2
      softfloat/8086/s_commonNaNToF32UI.c
  58. 2
      softfloat/8086/s_commonNaNToF64UI.c
  59. 2
      softfloat/8086/s_f32UIToCommonNaN.c
  60. 2
      softfloat/8086/s_f64UIToCommonNaN.c
  61. 2
      softfloat/8086/s_isSigNaNF32UI.c
  62. 2
      softfloat/8086/s_isSigNaNF64UI.c
  63. 2
      softfloat/8086/s_propagateNaNF32UI.c
  64. 2
      softfloat/8086/s_propagateNaNF64UI.c
  65. 2
      softfloat/8086/softfloat_raiseFlags.c
  66. 2
      softfloat/8086/softfloat_types.h
  67. 2
      softfloat/8086/specialize.h
  68. 2
      softfloat/f32_add.c
  69. 2
      softfloat/f32_classify.c
  70. 2
      softfloat/f32_div.c
  71. 2
      softfloat/f32_eq.c
  72. 2
      softfloat/f32_eq_signaling.c
  73. 2
      softfloat/f32_isSignalingNaN.c
  74. 2
      softfloat/f32_le.c
  75. 2
      softfloat/f32_le_quiet.c
  76. 2
      softfloat/f32_lt.c
  77. 2
      softfloat/f32_lt_quiet.c
  78. 2
      softfloat/f32_mul.c
  79. 2
      softfloat/f32_mulAdd.c
  80. 2
      softfloat/f32_rem.c
  81. 2
      softfloat/f32_roundToInt.c
  82. 2
      softfloat/f32_sqrt.c
  83. 2
      softfloat/f32_sub.c
  84. 2
      softfloat/f32_to_f64.c
  85. 2
      softfloat/f32_to_i32.c
  86. 2
      softfloat/f32_to_i32_r_minMag.c
  87. 2
      softfloat/f32_to_i64.c
  88. 2
      softfloat/f32_to_i64_r_minMag.c
  89. 2
      softfloat/f32_to_ui32.c
  90. 2
      softfloat/f32_to_ui32_r_minMag.c
  91. 2
      softfloat/f32_to_ui64.c
  92. 2
      softfloat/f32_to_ui64_r_minMag.c
  93. 2
      softfloat/f64_add.c
  94. 2
      softfloat/f64_classify.c
  95. 2
      softfloat/f64_div.c
  96. 2
      softfloat/f64_eq.c
  97. 2
      softfloat/f64_eq_signaling.c
  98. 2
      softfloat/f64_isSignalingNaN.c
  99. 2
      softfloat/f64_le.c
  100. 2
      softfloat/f64_le_quiet.c

34
LICENSE.Batten

@ -0,0 +1,34 @@
==========================================================================
Copyright License
==========================================================================
Copyright (c) 2008, Christopher Batten
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions, and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Massachusetts Institute of Technology nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Christopher Batten ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Christopher Batten BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.

37
LICENSE.SoftFloat

@ -0,0 +1,37 @@
License for Berkeley SoftFloat Release 3e
John R. Hauser
2018 January 20
The following applies to the whole of SoftFloat Release 3e as well as to
each source file individually.
Copyright 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 The Regents of the
University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of the University nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS "AS IS", AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ARE
DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

2
Makefile.in

@ -1,3 +1,5 @@
# See LICENSE.Batten for license details.
#
#=========================================================================
# Toplevel Makefile for the Modular C++ Build System
#=========================================================================

2
aclocal.m4

@ -1,3 +1,5 @@
# See LICENSE.Batten for license details.
#
#=========================================================================
# Local Autoconf Macros
#=========================================================================

2
bbl/bbl.ac

@ -1,3 +1,5 @@
# See LICENSE for license details.
AC_ARG_ENABLE([logo], AS_HELP_STRING([--enable-logo], [Enable boot logo]))
AS_IF([test "x$enable_logo" == "xyes"], [
AC_DEFINE([PK_ENABLE_LOGO],,[Define if the RISC-V logo is to be displayed])

2
bbl/bbl.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "bbl.h"
#include "mtrap.h"
#include "atomic.h"

2
bbl/bbl.lds

@ -1,3 +1,5 @@
/* See LICENSE for license details. */
OUTPUT_ARCH( "riscv" )
ENTRY( reset_vector )

2
bbl/bbl.mk.in

@ -1,3 +1,5 @@
# See LICENSE for license details.
bbl_subproject_deps = \
util \
softfloat \

2
bbl/logo.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include <string.h>
#include "mtrap.h"

2
bbl/payload.S

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "config.h"
#include "encoding.h"

2
bbl/raw_logo.S

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "encoding.h"
.section .rodata

2
configure.ac

@ -1,3 +1,5 @@
# See LICENSE.Batten for license details.
#
#=========================================================================
# Toplevel configure.ac for the Modular C++ Build System
#=========================================================================

2
dummy_payload/dummy_entry.S

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "mcall.h"
.section ".text.init"

2
dummy_payload/dummy_payload.lds

@ -1,3 +1,5 @@
/* See LICENSE for license details. */
ENTRY(_start)
SECTIONS {

2
dummy_payload/dummy_payload.mk.in

@ -1,3 +1,5 @@
# See LICENSE for license details.
dummy_payload_subproject_deps = \
dummy_payload_hdrs = \

2
machine/bits.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_BITS_H
#define _RISCV_BITS_H

2
machine/disabled_hart_mask.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef DISABLED_HART_MASK_H
#define DISABLED_HART_MASK_H
extern long disabled_hart_mask;

2
machine/emulation.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "emulation.h"
#include "fp_emulation.h"
#include "config.h"

2
machine/emulation.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_EMULATION_H
#define _RISCV_EMULATION_H

2
machine/fdt.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include <stdbool.h>
#include <stdint.h>
#include <string.h>

2
machine/fdt.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef FDT_H
#define FDT_H

2
machine/finisher.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include <string.h>
#include "finisher.h"
#include "fdt.h"

2
machine/finisher.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_FINISHER_H
#define _RISCV_FINISHER_H

2
machine/flush_icache.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
void __riscv_flush_icache(void) {
__asm__ volatile ("fence.i");
}

2
machine/fp_emulation.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "fp_emulation.h"
#include "unprivileged_memory.h"
#include "softfloat.h"

2
machine/fp_emulation.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_FP_EMULATION_H
#define _RISCV_FP_EMULATION_H

2
machine/fp_ldst.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "fp_emulation.h"
#include "unprivileged_memory.h"

2
machine/htif.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "htif.h"
#include "atomic.h"
#include "mtrap.h"

2
machine/htif.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_HTIF_H
#define _RISCV_HTIF_H

2
machine/machine.ac

@ -1,3 +1,5 @@
# See LICENSE for license details.
AC_ARG_ENABLE([fp-emulation], AS_HELP_STRING([--disable-fp-emulation], [Disable floating-point emulation]))
AS_IF([test "x$enable_fp_emulation" != "xno"], [
AC_DEFINE([PK_ENABLE_FP_EMULATION],,[Define if floating-point emulation is enabled])

2
machine/machine.mk.in

@ -1,3 +1,5 @@
# See LICENSE for license details.
machine_subproject_deps = \
softfloat \

2
machine/mcall.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_SBI_H
#define _RISCV_SBI_H

2
machine/minit.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "mtrap.h"
#include "atomic.h"
#include "vm.h"

2
machine/misaligned_ldst.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "emulation.h"
#include "fp_emulation.h"
#include "unprivileged_memory.h"

2
machine/mtrap.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "mtrap.h"
#include "mcall.h"
#include "htif.h"

2
machine/mtrap.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_MTRAP_H
#define _RISCV_MTRAP_H

2
machine/muldiv_emulation.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "emulation.h"
#ifndef __riscv_muldiv

2
machine/uart.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include <string.h>
#include "uart.h"
#include "fdt.h"

2
machine/uart.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_UART_H
#define _RISCV_UART_H

2
machine/uart16550.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include <string.h>
#include "uart16550.h"
#include "fdt.h"

2
machine/uart16550.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_16550_H
#define _RISCV_16550_H

2
machine/unprivileged_memory.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _RISCV_MISALIGNED_H
#define _RISCV_MISALIGNED_H

2
machine/vm.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _VM_H
#define _VM_H

2
pk/console.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "pk.h"
#include "file.h"
#include "frontend.h"

2
pk/mmap.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "mmap.h"
#include "atomic.h"
#include "pk.h"

2
pk/mmap.h

@ -1,3 +1,5 @@
// See LICENSE for license details.
#ifndef _MMAP_H
#define _MMAP_H

2
pk/pk.ac

@ -1,3 +1,5 @@
# See LICENSE for license details.
AC_ARG_ENABLE([vm], AS_HELP_STRING([--disable-vm], [Disable virtual memory]))
AS_IF([test "x$enable_vm" != "xno"], [
AC_DEFINE([PK_ENABLE_VM],,[Define if virtual memory support is enabled])

2
pk/pk.c

@ -1,3 +1,5 @@
// See LICENSE for license details.
#include "pk.h"
#include "mmap.h"
#include "boot.h"

2
pk/pk.lds

@ -1,3 +1,5 @@
/* See LICENSE for license details. */
OUTPUT_ARCH( "riscv" )
ENTRY( reset_vector )

2
pk/pk.mk.in

@ -1,3 +1,5 @@
# See LICENSE for license details.
pk_subproject_deps = \
util \
softfloat \

520
scripts/install-sh

@ -0,0 +1,520 @@
#!/bin/sh
# install - install a program, script, or datafile
scriptversion=2009-04-28.21; # UTC
# This originates from X11R5 (mit/util/scripts/install.sh), which was
# later released in X11R6 (xc/config/util/install.sh) with the
# following copyright and license.
#
# Copyright (C) 1994 X Consortium
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
# Except as contained in this notice, the name of the X Consortium shall not
# be used in advertising or otherwise to promote the sale, use or other deal-
# ings in this Software without prior written authorization from the X Consor-
# tium.
#
#
# FSF changes to this file are in the public domain.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
nl='
'
IFS=" "" $nl"
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit=${DOITPROG-}
if test -z "$doit"; then
doit_exec=exec
else
doit_exec=$doit
fi
# Put in absolute file names if you don't have them in your path;
# or use environment vars.
chgrpprog=${CHGRPPROG-chgrp}
chmodprog=${CHMODPROG-chmod}
chownprog=${CHOWNPROG-chown}
cmpprog=${CMPPROG-cmp}
cpprog=${CPPROG-cp}
mkdirprog=${MKDIRPROG-mkdir}
mvprog=${MVPROG-mv}
rmprog=${RMPROG-rm}
stripprog=${STRIPPROG-strip}
posix_glob='?'
initialize_posix_glob='
test "$posix_glob" != "?" || {
if (set -f) 2>/dev/null; then
posix_glob=
else
posix_glob=:
fi
}
'
posix_mkdir=
# Desired mode of installed file.
mode=0755
chgrpcmd=
chmodcmd=$chmodprog
chowncmd=
mvcmd=$mvprog
rmcmd="$rmprog -f"
stripcmd=
src=
dst=
dir_arg=
dst_arg=
copy_on_change=false
no_target_directory=
usage="\
Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
or: $0 [OPTION]... SRCFILES... DIRECTORY
or: $0 [OPTION]... -t DIRECTORY SRCFILES...
or: $0 [OPTION]... -d DIRECTORIES...
In the 1st form, copy SRCFILE to DSTFILE.
In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
In the 4th, create DIRECTORIES.
Options:
--help display this help and exit.
--version display version info and exit.
-c (ignored)
-C install only if different (preserve the last data modification time)
-d create directories instead of installing files.
-g GROUP $chgrpprog installed files to GROUP.
-m MODE $chmodprog installed files to MODE.
-o USER $chownprog installed files to USER.
-s $stripprog installed files.
-t DIRECTORY install into DIRECTORY.
-T report an error if DSTFILE is a directory.
Environment variables override the default commands:
CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
RMPROG STRIPPROG
"
while test $# -ne 0; do
case $1 in
-c) ;;
-C) copy_on_change=true;;
-d) dir_arg=true;;
-g) chgrpcmd="$chgrpprog $2"
shift;;
--help) echo "$usage"; exit $?;;
-m) mode=$2
case $mode in
*' '* | *' '* | *'
'* | *'*'* | *'?'* | *'['*)
echo "$0: invalid mode: $mode" >&2
exit 1;;
esac
shift;;
-o) chowncmd="$chownprog $2"
shift;;
-s) stripcmd=$stripprog;;
-t) dst_arg=$2
shift;;
-T) no_target_directory=true;;
--version) echo "$0 $scriptversion"; exit $?;;
--) shift
break;;
-*) echo "$0: invalid option: $1" >&2
exit 1;;
*) break;;
esac
shift
done
if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
# When -d is used, all remaining arguments are directories to create.
# When -t is used, the destination is already specified.
# Otherwise, the last argument is the destination. Remove it from $@.
for arg
do
if test -n "$dst_arg"; then
# $@ is not empty: it contains at least $arg.
set fnord "$@" "$dst_arg"
shift # fnord
fi
shift # arg
dst_arg=$arg
done
fi
if test $# -eq 0; then
if test -z "$dir_arg"; then
echo "$0: no input file specified." >&2
exit 1
fi
# It's OK to call `install-sh -d' without argument.
# This can happen when creating conditional directories.
exit 0
fi
if test -z "$dir_arg"; then
trap '(exit $?); exit' 1 2 13 15
# Set umask so as not to create temps with too-generous modes.
# However, 'strip' requires both read and write access to temps.
case $mode in
# Optimize common cases.
*644) cp_umask=133;;
*755) cp_umask=22;;
*[0-7])
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw='% 200'
fi
cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
*)
if test -z "$stripcmd"; then
u_plus_rw=
else
u_plus_rw=,u+rw
fi
cp_umask=$mode$u_plus_rw;;
esac
fi
for src
do
# Protect names starting with `-'.
case $src in
-*) src=./$src;;
esac
if test -n "$dir_arg"; then
dst=$src
dstdir=$dst
test -d "$dstdir"
dstdir_status=$?
else
# Waiting for this to be detected by the "$cpprog $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if test ! -f "$src" && test ! -d "$src"; then
echo "$0: $src does not exist." >&2
exit 1
fi
if test -z "$dst_arg"; then
echo "$0: no destination specified." >&2
exit 1
fi
dst=$dst_arg
# Protect names starting with `-'.
case $dst in
-*) dst=./$dst;;
esac
# If destination is a directory, append the input filename; won't work
# if double slashes aren't ignored.
if test -d "$dst"; then
if test -n "$no_target_directory"; then
echo "$0: $dst_arg: Is a directory" >&2
exit 1
fi
dstdir=$dst
dst=$dstdir/`basename "$src"`
dstdir_status=0
else
# Prefer dirname, but fall back on a substitute if dirname fails.
dstdir=`
(dirname "$dst") 2>/dev/null ||
expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
X"$dst" : 'X\(//\)[^/]' \| \
X"$dst" : 'X\(//\)$' \| \
X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
echo X"$dst" |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
s//\1/
q
}
/^X\(\/\/\)[^/].*/{
s//\1/
q
}
/^X\(\/\/\)$/{
s//\1/
q
}
/^X\(\/\).*/{
s//\1/
q
}
s/.*/./; q'
`
test -d "$dstdir"
dstdir_status=$?
fi
fi
obsolete_mkdir_used=false
if test $dstdir_status != 0; then
case $posix_mkdir in
'')
# Create intermediate dirs using mode 755 as modified by the umask.
# This is like FreeBSD 'install' as of 1997-10-28.
umask=`umask`
case $stripcmd.$umask in
# Optimize common cases.
*[2367][2367]) mkdir_umask=$umask;;
.*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
*[0-7])
mkdir_umask=`expr $umask + 22 \
- $umask % 100 % 40 + $umask % 20 \
- $umask % 10 % 4 + $umask % 2
`;;
*) mkdir_umask=$umask,go-w;;
esac
# With -d, create the new directory with the user-specified mode.
# Otherwise, rely on $mkdir_umask.
if test -n "$dir_arg"; then
mkdir_mode=-m$mode
else
mkdir_mode=
fi
posix_mkdir=false
case $umask in
*[123567][0-7][0-7])
# POSIX mkdir -p sets u+wx bits regardless of umask, which
# is incompatible with FreeBSD 'install' when (umask & 300) != 0.
;;
*)
tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
if (umask $mkdir_umask &&
exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
then
if test -z "$dir_arg" || {
# Check for POSIX incompatibilities with -m.
# HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
# other-writeable bit of parent directory when it shouldn't.
# FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
ls_ld_tmpdir=`ls -ld "$tmpdir"`
case $ls_ld_tmpdir in
d????-?r-*) different_mode=700;;
d????-?--*) different_mode=755;;
*) false;;
esac &&
$mkdirprog -m$different_mode -p -- "$tmpdir" && {
ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
}
}
then posix_mkdir=:
fi
rmdir "$tmpdir/d" "$tmpdir"
else
# Remove any dirs left behind by ancient mkdir implementations.
rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
fi
trap '' 0;;
esac;;
esac
if
$posix_mkdir && (
umask $mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
)
then :
else
# The umask is ridiculous, or mkdir does not conform to POSIX,
# or it failed possibly due to a race condition. Create the
# directory the slow way, step by step, checking for races as we go.
case $dstdir in
/*) prefix='/';;
-*) prefix='./';;
*) prefix='';;
esac
eval "$initialize_posix_glob"
oIFS=$IFS
IFS=/
$posix_glob set -f
set fnord $dstdir
shift
$posix_glob set +f
IFS=$oIFS
prefixes=
for d
do
test -z "$d" && continue
prefix=$prefix$d
if test -d "$prefix"; then
prefixes=
else
if $posix_mkdir; then
(umask=$mkdir_umask &&
$doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
# Don't fail if two instances are running concurrently.
test -d "$prefix" || exit 1
else
case $prefix in
*\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
*) qprefix=$prefix;;
esac
prefixes="$prefixes '$qprefix'"
fi
fi
prefix=$prefix/
done
if test -n "$prefixes"; then
# Don't fail if two instances are running concurrently.
(umask $mkdir_umask &&
eval "\$doit_exec \$mkdirprog $prefixes") ||
test -d "$dstdir" || exit 1
obsolete_mkdir_used=true
fi
fi
fi
if test -n "$dir_arg"; then
{ test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
{ test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
else
# Make a couple of temp file names in the proper directory.
dsttmp=$dstdir/_inst.$$_
rmtmp=$dstdir/_rm.$$_
# Trap to clean up those temp files at exit.
trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
# Copy the file name to the temp name.
(umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
# and set any options; do chmod last to preserve setuid bits.
#
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $cpprog $src $dsttmp" command.
#
{ test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
{ test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
{ test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
{ test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
# If -C, don't bother to copy if it wouldn't change the file.
if $copy_on_change &&
old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
eval "$initialize_posix_glob" &&
$posix_glob set -f &&
set X $old && old=:$2:$4:$5:$6 &&
set X $new && new=:$2:$4:$5:$6 &&
$posix_glob set +f &&
test "$old" = "$new" &&
$cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
then
rm -f "$dsttmp"
else
# Rename the file to the real destination.
$doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
# The rename failed, perhaps because mv can't rename something else
# to itself, or perhaps because mv is so ancient that it does not
# support -f.
{
# Now remove or move aside any old file at destination location.
# We try this two ways since rm can't unlink itself on some
# systems and the destination file might be busy for other
# reasons. In this case, the final cleanup might fail but the new
# file should still install successfully.
{
test ! -f "$dst" ||
$doit $rmcmd -f "$dst" 2>/dev/null ||
{ $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
{ $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
} ||
{ echo "$0: cannot unlink or rename $dst" >&2
(exit 1); exit 1
}
} &&
# Now rename the file to the real destination.
$doit $mvcmd "$dsttmp" "$dst"
}
fi || exit 1
trap '' 0
fi
done
# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "scriptversion="
# time-stamp-format: "%:y-%02m-%02d.%02H"
# time-stamp-time-zone: "UTC"
# time-stamp-end: "; # UTC"
# End:

238
scripts/install.sh

@ -1,238 +0,0 @@
#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.
#
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
tranformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0

2
scripts/vcs-version.sh

@ -1,4 +1,6 @@
#!/bin/bash
# See LICENSE.Batten for license details.
#
#=========================================================================
# vcs-version.sh [options] [src-dir]
#=========================================================================

2
softfloat/8086/OLD-specialize.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*============================================================================

2
softfloat/8086/OLD-specialize.h

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*============================================================================

2
softfloat/8086/platform.h

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*============================================================================

2
softfloat/8086/s_commonNaNToF32UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"

2
softfloat/8086/s_commonNaNToF64UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"

2
softfloat/8086/s_f32UIToCommonNaN.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"

2
softfloat/8086/s_f64UIToCommonNaN.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"

2
softfloat/8086/s_isSigNaNF32UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/8086/s_isSigNaNF64UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/8086/s_propagateNaNF32UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*** UPDATE COMMENTS. ***/

2
softfloat/8086/s_propagateNaNF64UI.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*** UPDATE COMMENTS. ***/

2
softfloat/8086/softfloat_raiseFlags.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*============================================================================

2
softfloat/8086/softfloat_types.h

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#ifndef softfloat_types_h
#define softfloat_types_h

2
softfloat/8086/specialize.h

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
/*============================================================================

2
softfloat/f32_add.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_classify.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_div.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_eq.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_eq_signaling.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_isSignalingNaN.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include "platform.h"

2
softfloat/f32_le.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_le_quiet.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_lt.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_lt_quiet.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_mul.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_mulAdd.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdint.h>
#include "platform.h"

2
softfloat/f32_rem.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_roundToInt.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_sqrt.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_sub.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_f64.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_i32.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_i32_r_minMag.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_i64.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_i64_r_minMag.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_ui32.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_ui32_r_minMag.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_ui64.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f32_to_ui64_r_minMag.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_add.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_classify.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_div.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_eq.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_eq_signaling.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_isSignalingNaN.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include "platform.h"

2
softfloat/f64_le.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

2
softfloat/f64_le_quiet.c

@ -1,3 +1,5 @@
// See LICENSE.SoftFloat for license details.
#include <stdbool.h>
#include <stdint.h>

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save