#!/bin/sh set -v COPYDIRS=" hotspot/agent/src/os/linux hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/linux hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/linux/amd64 hotspot/agent/src/share/classes/sun/jvm/hotspot/debugger/linux/x86 hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/linux hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/linux_amd64 hotspot/agent/src/share/classes/sun/jvm/hotspot/runtime/linux_x86 hotspot/src/os/linux/launcher hotspot/src/os/linux/vm hotspot/src/os_cpu/linux_x86/vm hotspot/src/os_cpu/linux_zero/vm hotspot/make/linux hotspot/make/linux/makefiles jdk/src/linux/doc/man jdk/src/linux/doc/man/ja" COPYFILES=" hotspot/agent/src/share/classes/sun/jvm/hotspot/LinuxVtblAccess.java corba/make/common/Defs-linux.gmk corba/make/common/shared/Defs-linux.gmk jdk/make/com/sun/tools/attach/mapfile-linux jdk/make/common/Defs-linux.gmk jdk/make/common/shared/Defs-linux.gmk jdk/make/java/nio/mapfile-linux jdk/make/netbeans/common/architectures/name-Linux.properties jdk/make/sun/awt/mapfile-vers-linux jdk/make/tools/sharing/classlist.linux jdk/src/solaris/classes/java/lang/UNIXProcess.java.linux jdk/src/solaris/classes/sun/awt/fontconfigs/linux.fontconfig.properties jdk/src/solaris/classes/sun/nio/fs/LinuxFileSystemProvider.java jdk/src/solaris/classes/sun/nio/fs/LinuxFileSystem.java jdk/src/solaris/classes/sun/nio/fs/LinuxFileStore.java jdk/src/solaris/classes/sun/nio/fs/LinuxNativeDispatcher.java jdk/src/solaris/classes/sun/tools/attach/LinuxAttachProvider.java jdk/src/solaris/classes/sun/tools/attach/LinuxVirtualMachine.java jdk/src/solaris/hpi/include/largefile_linux.h jdk/src/solaris/native/java/net/linux_close.c jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c" # create initial bsd src from linux src (except for threads_solaris.c) for d in ${COPYDIRS}; do mkdir -p `echo $1/$d | sed 's/linux/bsd/g;'`; cd $1/$d; for f in *; do if [ -f $f ]; then t=`echo $1/$d/$f | sed 's/linux/bsd/g; s/Linux/Bsd/g'`; sed 's/linux/bsd/g; s/Linux/Bsd/g' < $f > $t; fi; done; done for f in ${COPYFILES}; do t=`echo $f | sed 's/linux/bsd/g; s/Linux/Bsd/g'`; sed 's/linux/bsd/g; s/Linux/Bsd/g' < $1/$f > $1/$t; done sed 's/solaris/bsd/g; s/Solaris/Bsd/g' < $1/jdk/src/solaris/hpi/native_threads/src/threads_solaris.c > $1/jdk/src/solaris/hpi/native_threads/src/threads_bsd.c