Begin condensing stuff

This commit is contained in:
Jacob Adams 2015-06-07 16:42:31 -04:00
parent 5b96f7cfd5
commit 145f267263
4 changed files with 28 additions and 30 deletions

View File

@ -12,14 +12,39 @@ SRC=$MINIX/../newsrc
export MINIX N2M NETBSD SRC
echo "Setup NetBSD"
$N2M/setupnetbsd.sh
cd $NETBSD || (git clone --depth 1 git://github.com/jsonn/src $NETBSD && cd $NETBSD)
git pull
echo "Clear new src tree"
mkdir -p $SRC
rm -rf $SRC/*
echo "Apply whitelists"
$N2M/whitelists.sh
cd $N2M/whitelist
for item in `ls`
do
$N2M/applywhitelist.sh $NETBSD/$item $item < $item
echo "$item moved"
done
$N2M/applywhitelist.sh $MINIX . < $N2M/minix.txt
echo "Apply special-cases"
$N2M/special.sh
cd $MINIX
for dir in "external bin games gnu libexec sbin tools usr.bin usr.sbin"
do
cp -f $MINIX/$dir/Makefile $SRC/$dir
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

@ -1,2 +0,0 @@
cd $NETBSD || (git clone --depth 1 git://github.com/jsonn/src $NETBSD && cd $NETBSD)
git pull

View File

@ -1,15 +0,0 @@
# Manually-copied files
for dir in "external bin games gnu libexec sbin usr.bin usr.sbin"
do
cp -f $MINIX/$dir/Makefile $SRC/$dir
done
cp -r $MINIX/include/cdbr.h $SRC/include
cp -r $MINIX/share/zoneinfo $SRC/share
cp -r $MINIX/tools/llvm-librt $SRC/tools
cp -r $MINIX/tools/mkfs.mfs $SRC/tools
cp -r $MINIX/tools/mkproto $SRC/tools
cp -r $MINIX/tools/partition $SRC/tools
cp -r $MINIX/tools/toproto $SRC/tools
cp -r $MINIX/tools/writeisofs $SRC/tools

View File

@ -1,10 +0,0 @@
cd $N2M/whitelist
for item in `ls`
do
$N2M/applywhitelist.sh $NETBSD/$item $item < $item
echo "$item moved"
done
$N2M/applywhitelist.sh $MINIX . < $N2M/minix.txt
cd $MINIX