Remove building with NOCRYPTO option
[minix.git] / releasetools / netbsd-resync.sh
blob2ba11966acf4ab86a034b082b885dbe6aba81806
1 #!/bin/sh
2 : ${BUILDSH=build.sh}
4 if [ ! -f ${BUILDSH} ]
5 then
6 echo "Please invoke me from the root source dir, where ${BUILDSH} is."
7 exit 1
8 fi
10 if [ -z "${NETBSD_BRANCH}" ]
11 then
12 echo "NETBSD_BRANCH is undefined."
13 exit 1
16 find . -type f | cut -c 3- | grep -v '\.git' | grep -v '\./minix' | sort -u > files.all
17 git grep -i minix | cut -d: -f1 | grep -v '\.git' | grep -v '\./minix' | sort -u > files.minix
18 diff files.all files.minix |grep '^<'| cut -c 3- > files.netbsd
20 while read file
22 git checkout ${NETBSD_BRANCH} ${file}
23 done < files.netbsd