45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
set -e
 | 
						|
 | 
						|
: machine-dependant stuff
 | 
						|
 | 
						|
create_dir $TARGET_HOME
 | 
						|
( cd $TARGET_HOME ; find . -exec chmod +w {} \; )
 | 
						|
create_dir $TARGET_HOME/config
 | 
						|
create_dir $TARGET_HOME/lib.bin
 | 
						|
create_dir $TARGET_HOME/modules
 | 
						|
create_dir $TARGET_HOME/modules/h
 | 
						|
create_dir $TARGET_HOME/modules/man
 | 
						|
create_dir $TARGET_HOME/modules/pkg
 | 
						|
create_dir $TARGET_HOME/modules/lib
 | 
						|
create_dir $TARGET_HOME/bin
 | 
						|
 | 
						|
cp_dir $SRC_HOME/modules/h $TARGET_HOME/modules/h
 | 
						|
cp local.h em_path.h $TARGET_HOME/config
 | 
						|
cp_dir $SRC_HOME/bin $TARGET_HOME/bin
 | 
						|
cp $CONFIG/bin/cp_dir $TARGET_HOME/bin/cp_dir
 | 
						|
echo "echo $SYSNAME" > $TARGET_HOME/bin/ack_sys
 | 
						|
chmod +x $TARGET_HOME/bin/ack_sys
 | 
						|
 | 
						|
: machine-independant stuff
 | 
						|
 | 
						|
if [ $DO_MACHINE_INDEP = n ]
 | 
						|
then
 | 
						|
	exit 0
 | 
						|
fi
 | 
						|
 | 
						|
create_dir $TARGET_HOME/lib
 | 
						|
create_dir $TARGET_HOME/etc
 | 
						|
create_dir $TARGET_HOME/h
 | 
						|
create_dir $TARGET_HOME/include
 | 
						|
create_dir $TARGET_HOME/doc
 | 
						|
 | 
						|
cp $SRC_HOME/etc/ip_spec.t $TARGET_HOME/etc/ip_spec.t
 | 
						|
cp_dir $SRC_HOME/lib $TARGET_HOME/lib
 | 
						|
cp_dir $SRC_HOME/h $TARGET_HOME/h
 | 
						|
cp_dir $SRC_HOME/doc $TARGET_HOME/doc
 | 
						|
cp_dir $SRC_HOME/include $TARGET_HOME/include
 | 
						|
 | 
						|
cd $TARGET_HOME
 | 
						|
find . -type f -exec chmod +w {} \;
 | 
						|
 | 
						|
exit 0
 |