From: curt Date: Mon, 24 Aug 1998 20:33:48 +0000 (+0000) Subject: Renamed runfg.bat.in runfgfs.bat.in X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8dec77d3f19d92cb9a89f93c13f10762f7dc657;p=flightgear.git Renamed runfg.bat.in runfgfs.bat.in --- diff --git a/Main/Makefile.am b/Main/Makefile.am index af29a7f3d..d9fe4d691 100644 --- a/Main/Makefile.am +++ b/Main/Makefile.am @@ -17,13 +17,13 @@ if ENABLE_XMESA_FX DEFS += -DXMESA -DFX endif -EXTRA_DIST = runfg.in runfg.bat.in +EXTRA_DIST = runfgfs.in runfgfs.bat.in -bin_PROGRAMS = fg +bin_PROGRAMS = fgfs -bin_SCRIPTS = runfg runfg.bat +bin_SCRIPTS = runfgfs runfgfs.bat -fg_SOURCES = \ +fgfs_SOURCES = \ GLUTkey.cxx GLUTkey.hxx \ GLUTmain.cxx \ airports.cxx airports.hxx \ @@ -33,7 +33,7 @@ fg_SOURCES = \ splash.cxx splash.hxx \ views.cxx views.hxx -fg_LDADD = \ +fgfs_LDADD = \ $(top_builddir)/Simulator/Aircraft/libAircraft.a \ $(top_builddir)/Simulator/Astro/libAstro.a \ $(top_builddir)/Simulator/Autopilot/libAutopilot.a \ diff --git a/Main/runfg.bat.in b/Main/runfg.bat.in deleted file mode 100755 index 795821784..000000000 --- a/Main/runfg.bat.in +++ /dev/null @@ -1,28 +0,0 @@ -REM @ECHO OFF - -REM Skip ahead to RUN1 if %FG_ROOT%\BIN\FG.EXE exists -IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 - -REM %FG_ROOT% wasn't set right so let's try "." -SET FG_ROOT=. -IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 - -REM %FG_ROOT% wasn't set right so let's try ".." -SET FG_ROOT=.. -IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 - -REM %FG_ROOT% wasn't set right so let's try "@prefix@" -SET FG_ROOT=@prefix@ -IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 - -ECHO Cannot find %FG_ROOT%\BIN\FG.EXE -GOTO END - -:RUN1 -REM Now that FG_ROOT has been set, run the program -ECHO FG_ROOT = %FG_ROOT% -%FG_ROOT%\BIN\FG.EXE %1 %2 %3 %4 %5 %6 %7 %8 %9 - -GOTO END - -:END diff --git a/Main/runfgfs.bat.in b/Main/runfgfs.bat.in new file mode 100755 index 000000000..795821784 --- /dev/null +++ b/Main/runfgfs.bat.in @@ -0,0 +1,28 @@ +REM @ECHO OFF + +REM Skip ahead to RUN1 if %FG_ROOT%\BIN\FG.EXE exists +IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 + +REM %FG_ROOT% wasn't set right so let's try "." +SET FG_ROOT=. +IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 + +REM %FG_ROOT% wasn't set right so let's try ".." +SET FG_ROOT=.. +IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 + +REM %FG_ROOT% wasn't set right so let's try "@prefix@" +SET FG_ROOT=@prefix@ +IF EXIST %FG_ROOT%\BIN\FG.EXE GOTO RUN1 + +ECHO Cannot find %FG_ROOT%\BIN\FG.EXE +GOTO END + +:RUN1 +REM Now that FG_ROOT has been set, run the program +ECHO FG_ROOT = %FG_ROOT% +%FG_ROOT%\BIN\FG.EXE %1 %2 %3 %4 %5 %6 %7 %8 %9 + +GOTO END + +:END