
 echo " You Should NOT be using this script any longer! "
 echo " Use BuildNewDisk instead!"
 break


; A short AmigaDos script that does nothing more valuable that copy
; the binaries from the source tree into our binary tree.
; Note:  It copies everything without much regard to whether anything
; has changed or not.
;
;

assign bsolddir: ""
cd envoy:

echo "Rebuilding the Envoy:Disk directory from scratch . . ."
echo "<Be patient>"

echo ""
bumprev >nil: 0 disk_rev

delete >nil: t:buildnumberfile#?


date >env:EnvoyDate
type >env:EnvoyRevision disk_rev.rev

echo >t:buildnumberfile "This Disk is revision V0.$EnvoyRevision."
echo >>t:buildnumberfile "It was built on $EnvoyDate by $username."

copy >nil: t:buildnumberfile disk/ReadMe.BuildNumber
delete >nil: t:buildnumberfile#?

; Libraries
echo "Libraries . . ."
copy >nil: src/nipc/nipc.ld.strip disk/libs/nipc.library CLONE
copy >nil: src/services/services.ld.strip disk/libs/services.library CLONE
copy >nil: src/envoy/envoy.ld.strip disk/libs/envoy.library CLONE
copy >nil: src/accounts/libs/accounts.ld.strip disk/libs/accounts.library CLONE

; SANA-II drivers
echo "SANA-II Drivers . . ."
copy >NIL: sana2:bin/devs/a2065.device disk/devs/Networks/a2065.device CLONE
copy >NIL: sana2:bin/devs/a2060.device disk/devs/Networks/a2060.device CLONE

; Services Manager
echo "Services Manager . . ."
copy >NIL: src/services/manager.ld.strip "disk/Services/Services Manager" CLONE


; Configuration tools
echo "Config . . ."
copy >nil: src/Config/NIPCConfig/nipcconfig.ld.strip "disk/Configuration/NIPC Configuration" CLONE
copy >nil: src/Config/SMConfig/smconfig.ld.strip "disk/Configuration/Services Configuration" CLONE
copy >nil: src/Config/FSConfig/fsconfig "disk/Configuration/Filesystem Exports" CLONE
Copy >nil: src/Config/FCConfig/fcconfig "disk/Configuration/Filesystem Imports" CLONE
copy >nil: src/printer/config/clientconfig "disk/Configuration/Printer Import" CLONE
copy >nil: src/printer/config/serverconfig "disk/Config/Printer Export" CLONE
copy >nil: src/accounts/prefs/users/userprefs.ld.strip "disk/Configuration/Users" CLONE
copy >nil: src/accounts/prefs/groups/groupprefs.ld.strip "disk/Configuration/Groups" CLONE

; Filesystem
echo "Filesystem . . ."
copy >nil: src/fs/client/EnvoyFileSystem disk/l/EnvoyFileSystem CLONE
copy >nil: src/fs/server/filesystem.service disk/Services/filesystem.service CLONE

; Printer
echo "Printer . . ."
copy >nil: src/printer/client/envoyprint.device disk/devs/envoyprint.device CLONE
copy >nil: src/printer/update "disk/Config/Network Printing" CLONE
copy >nil: src/printer/update.info "disk/Config/Network Printing.info" CLONE
copy >nil: src/printer/server/printspool.service disk/services/printspool.service CLONE

; Accounts
echo "Accounts . . ."
copy >nil: src/accounts/manager/manager.ld.strip "disk/Accounts/Accounts Manager" CLONE

; C: Commands
echo "C: commands . . ."
; Weird.  You can't get this from anywhere else!
copy >nil: SoftServe:Public/Workbench_V39/Workbench3.0/c/mount disk/c/mount CLONE
copy >nil: src/c/list/list.ld disk/c/list
copy >nil: src/c/protect/protect.ld disk/c/protect
copy >nil: src/c/owner/owner disk/c/owner
copy >nil: src/c/group/group disk/c/group

; Include files
echo "Include files . . ."
copy >nil: include disk/include ALL CLONE

; Documentation
echo "Autodocs . . ."
copy >nil: doc/#? disk/doc ALL CLONE

echo "dev overview . . ."
copy >nil: txt/envoy_overview/DEVOVERVIEW.TXT "disk/doc/Project Overview"
copy >nil: txt/concepts "disk/doc/Valuable Concepts"
copy >nil: txt/ReadMe.BetaDisk disk/doc/ReadMe.BetaDisk
copy >nil: txt/using.efs "disk/doc/Using EFS"

; Examples
echo "Example Code . . ."
copy >nil: disk_examples disk/examples ALL CLONE

cd bsolddir:
assign bsolddir: REMOVE


