This commit is contained in:
Jacob Adams 2017-05-11 06:07:13 +00:00 committed by GitHub
commit db48b9f696
18 changed files with 523 additions and 0 deletions

10
releasetools/applywhitelist.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
# Assume $1 is whitelist working directory
cd $1
mkdir -p $SRC/$2
while read dir
do
cp -rf $dir $SRC/$2
done
cd $MINIX

9
releasetools/minix.txt Normal file
View File

@ -0,0 +1,9 @@
minix
build.sh
distrib
docs
etc
Makefile
releasetools
.gitignore
.gitreview

50
releasetools/netbsd2minix.sh Executable file
View File

@ -0,0 +1,50 @@
#!/bin/sh
# Current source tree
: ${MINIX=`pwd`}
# releasetools folder
: ${RT=$MINIX/releasetools}
# NetBSD source tree
: ${NETBSD=$MINIX/../netbsd}
# New source tree
: ${SRC=$MINIX/../newsrc}
export MINIX NETBSD SRC
echo "Setup NetBSD"
cd $NETBSD || (git clone --depth 1 git://github.com/jsonn/src $NETBSD && cd $NETBSD)
git pull
git reset --hard
echo "Clear new src tree"
mkdir -p $SRC
rm -rf $SRC/*
echo "Apply whitelists"
cd $RT/whitelist
for item in `ls`
do
$RT/applywhitelist.sh $NETBSD/$item $item < $item
echo "$item moved"
done
$RT/applywhitelist.sh $MINIX . < $RT/minix.txt
echo "Apply special-cases"
cd $MINIX
for dir in "external bin games gnu libexec sbin tools usr.bin usr.sbin"
do
cp -f $MINIX/$dir/Makefile $SRC/$dir/Makefile
done
cp -r $MINIX/include/cdbr.h $SRC/include/cdbr.h
cp -r $MINIX/share/zoneinfo $SRC/share/zoneinfo
cp -r $MINIX/tools/llvm-librt $SRC/tools/llvm-librt
cp -r $MINIX/tools/mkfs.mfs $SRC/tools/mkfs.mfs
cp -r $MINIX/tools/mkproto $SRC/tools/mkproto
cp -r $MINIX/tools/partition $SRC/tools/partition
cp -r $MINIX/tools/toproto $SRC/tools/toproto
cp -r $MINIX/tools/writeisofs $SRC/tools/writeisofs

View File

@ -0,0 +1,28 @@
cat
chmod
cp
date
dd
df
echo
ed
expr
hostname
kill
ksh
ln
ls
Makefile
Makefile.inc
mkdir
mv
pax
ps
pwd
rm
rmdir
sh
sleep
stty
sync
test

View File

@ -0,0 +1,3 @@
dist
include
lib

View File

@ -0,0 +1,8 @@
bsd
gpl3
historical
lgpl3
Makefile
mit
public-domain
README

View File

@ -0,0 +1,23 @@
adventure
arithmetic
banner
bcd
caesar
colorbars
factor
fish
fortune
Makefile
Makefile.inc
monop
morse
number
pig
ppt
primes
rain
random
rogue
snake
tetris
wargames

View File

@ -0,0 +1,4 @@
dist
Makefile
README
usr.bin

View File

@ -0,0 +1,108 @@
aio.h
a.out.h
ar.h
arpa
assert.h
atomic.h
bitstring.h
bm.h
cdbw.h
complex.h
cpio.h
ctype.h
db.h
dirent.h
disktab.h
dlfcn.h
err.h
errno.h
fenv.h
fmtmsg.h
fnmatch.h
fstab.h
fts.h
ftw.h
getopt.h
glob.h
grp.h
hesiod.h
iconv.h
ieeefp.h
ifaddrs.h
inttypes.h
iso646.h
kvm.h
langinfo.h
libgen.h
limits.h
link_aout.h
link_elf.h
link.h
locale.h
login_cap.h
lwp.h
Makefile
malloc.h
math.h
md2.h
memory.h
mntopts.h
monetary.h
mpool.h
mqueue.h
ndbm.h
netconfig.h
netdb.h
netgroup.h
nlist.h
nl_types.h
nsswitch.h
paths.h
protocols
pwd.h
quota.h
randomid.h
ranlib.h
re_comp.h
regex.h
regexp.h
resolv.h
res_update.h
rmt.h
rpc
rpcsvc
sched.h
search.h
semaphore.h
setjmp.h
sgtty.h
signal.h
spawn.h
ssp
stab.h
stdbool.h
stddef.h
stdio.h
stdlib.h
string.h
stringlist.h
strings.h
struct.h
sysexits.h
tar.h
tgmath.h
time.h
ttyent.h
tzfile.h
ucontext.h
ulimit.h
unistd.h
util.h
utime.h
utmp.h
utmpx.h
uuid.h
vis.h
wchar.h
wctype.h
wordexp.h

View File

@ -0,0 +1,26 @@
bumpversion
checkoldver
checkver
checkvers
csu
libbz2
libc
libcrypt
libcurses
libc_vfp
libedit
libexecinfo
libform
libm
libmenu
libpci
libprop
libpuffs
librefuse
librmt
libterminfo
libutil
libz
lua
Makefile
Makefile.inc

View File

@ -0,0 +1,7 @@
fingerd
ftpd
getty
ld.elf_so
Makefile
Makefile.inc
makewhatis

View File

@ -0,0 +1,12 @@
chown
fsck
fsck_ext2fs
init
Makefile
Makefile.inc
mknod
newfs_ext2fs
nologin
ping
reboot
shutdown

View File

@ -0,0 +1,6 @@
legal
Makefile
Makefile.inc
misc
mk
terminfo

View File

@ -0,0 +1,14 @@
arch
compat
conf
dev
external
fs
lib
Makefile
net
netinet
netinet6
sys
ufs
uvm

View File

@ -0,0 +1,22 @@
bin
crypto
dev
fs
games
h_macros.h
include
ipf
kernel
lib
libexec
Makefile
Makefile.inc
modules
net
README
rump
sbin
share
sys
usr.bin
usr.sbin

View File

@ -0,0 +1,53 @@
awk
binstall
binutils
cat
cksum
compat
file
gcc
genassym
gmake
gmp
headerlist
host-mkdep
installboot
join
lex
llvm
llvm-clang
llvm-clang-tblgen
llvm-include
llvm-lib
llvm-lld
llvm-mcld
llvm-tblgen
lorder
m4
make
Makefile
Makefile.gmakehost
Makefile.gnuhost
Makefile.gnuwrap
Makefile.host
Makefile.nbincludes
makewhatis
mandoc
mkdep
mkheaderlist.sh
mknod
mktemp
mpc
mpfr
mtree
nbperf
pax
pwd_mkdb
sed
stat
strfile
texinfo
tic
tsort
yacc
zic

View File

@ -0,0 +1,124 @@
apropos
asa
banner
basename
bdes
bzip2
bzip2recover
cal
calendar
checknr
chpass
cksum
col
colcrt
colrm
column
comm
csplit
ctags
cut
deroff
dirname
du
env
expand
false
finger
fold
fpr
from
fsplit
ftp
genassym
getopt
gzip
head
hexdump
id
indent
infocmp
join
jot
lam
last
ldd
leave
lock
login
logname
lorder
m4
machine
make
Makefile
Makefile.inc
man
menuc
mesg
mkdep
mkfifo
mkstr
mktemp
msgc
nbperf
newgrp
nice
nl
nohup
passwd
paste
patch
pathchk
pr
printenv
printf
pwhash
renice
rev
sdiff
sed
seq
shar
shlock
shuffle
soelim
sort
split
stat
su
tail
tee
tic
touch
tput
tr
true
tsort
tty
ul
uname
unexpand
unifdef
uniq
units
unvis
unzip
users
uudecode
uuencode
uuidgen
vis
w
wall
wc
what
whatis
whereis
who
whois
write
xargs
xinstall
xstr
yes

View File

@ -0,0 +1,16 @@
chroot
i2cscan
installboot
link
Makefile
Makefile.inc
mtree
postinstall
pwd_mkdb
rdate
traceroute
unlink
user
vipw
vnconfig
zic