echo "Fge Assigns in die *"s:user-startup*" ein..."
echo ""
echo >> s:user-startup "assign >NIL: Blitz2: *"`cd`*""
echo >> s:user-startup "assign >NIL: Blitzlibs: *"`cd`/blitzlibs*""

echo "Erstelle Assigns fr diese Sitzung..."
echo ""
assign >NIL: Blitz2: "`cd`"
assign >NIL: Blitzlibs: "`cd`/blitzlibs"

echo "Kopiere Prefs-Dateien nach ENVARC:..."
echo ""
copy Prefs/ted.menus ENVARC:
copy Prefs/ted.prefs ENVARC:
copy Prefs/ted.menus ENV:
copy Prefs/ted.prefs ENV:

ask "Wollen sie die neuen ped.prefs nach ENVARC: kopieren? (y/n)"
if warn
  echo "ped.prefs kopiert"
copy Prefs/ped.prefs ENVARC:
copy Prefs/ped.prefs ENV:
else
  echo "ped.prefs nicht kopiert"
endif

echo ""
echo "Kopiere bentigte  System-Libraries..."
copy libs/ted.library libs:
echo "(ted.library)"
copy libs/lh.library libs:
echo "(lh.library)"
echo ""

if exists libs:wizard.library
  version libs:wizard.library VERSION=42 REVISION=100 >NIL:
  if warn
echo ""
    echo "Aktualisiere wizard.library (die alte Version wird in wizard.library_old umbenannt)"
echo ""
    if exists libs:wizard.library_old
      delete libs:wizard.library_old
    endif
    rename libs:wizard.library libs:wizard.library_old
    copy libs/wizard.library libs:
  endif
else
  echo "Kopiere wizard.library nach Libs:"
  copy libs/wizard.library libs:
endif

if exists libs:disassembler.library
  version libs:disassembler.library VERSION=40 REVISION=4 >NIL:
  if warn
    echo "Aktualisiere disassembler.library (die alte Version wird in disassembler.library_old umbenannt)"
echo ""
    if exists libs:disassembler.library_old
      delete libs:disassembler.library_old
    endif
    rename libs:disassembler.library libs:disassembler.library_old
    copy libs/disassembler.library libs:
  endif
else
  echo "Kopiere disassembler.library nach Libs:"
  copy libs/disassembler.library libs:
endif

echo "Setze Script protection bits fr Online-Hilfe..."
echo ""
protect blitz2:redhelp/red_help +s
protect blitz2:redhelp/red_help +e
protect blitz2:redhelp/showexample +s
protect blitz2:redhelp/showexample +e

ask "Soll die deutsche Version von AmiBlitz, PED und der online-Hilfe installiert werden? (y/n)"
if warn
  echo "Deutsch ausgewhlt"
  rename blitz2:Amiblitz2 blitz2:amiblitz2_eng
  rename blitz2:PED blitz2:ped_eng
  rename blitz2:help.dat blitz2:help_eng.dat
  rename blitz2:RedHelp/RedHelp.dat blitz2:RedHelp/RedHelp_eng.dat
  rename blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs.guide blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs_eng.guide 

  rename blitz2:amiblitz2_ger blitz2:Amiblitz2
  rename blitz2:ped_ger blitz2:PED
  rename blitz2:help_ger.dat blitz2:help.dat
  rename blitz2:RedHelp/RedHelp_ger.dat blitz2:RedHelp/RedHelp.dat
  rename blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs_ger.guide blitz2:RedHelp/REDBlitzLibs/REDBlitzLibs.guide 
else
  echo "Englisch ausgewhlt"
endif

echo ""
echo ""
echo "Amiblitz kann nun gestartet werden. Zum Abschlieen das Fenster schlieen."
echo ""