"Fossies" - the Fresh Open Source Software Archive

Member "libsigc++-2.10.2/MSVC_NMake/create-lists.bat" (5 May 2019, 805 Bytes) of package /linux/misc/libsigc++-2.10.2.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @echo off
    2 rem Simple .bat script for creating the NMake Makefile snippets.
    3 
    4 if not "%1" == "header" if not "%1" == "file" if not "%1" == "footer" goto :error_cmd
    5 if "%2" == "" goto error_no_destfile
    6 
    7 if "%1" == "header" goto :header
    8 if "%1" == "file" goto :addfile
    9 if "%1" == "footer" goto :footer
   10 
   11 :header
   12 if "%3" == "" goto error_var
   13 echo %3 =   \>>%2
   14 goto done
   15 
   16 :addfile
   17 if "%3" == "" goto error_file
   18 echo.   %3  \>>%2
   19 goto done
   20 
   21 :footer
   22 echo.   $(NULL)>>%2
   23 echo.>>%2
   24 goto done
   25 
   26 :error_cmd
   27 echo Specified command '%1' was invalid.  Valid commands are: header file footer.
   28 goto done
   29 
   30 :error_no_destfile
   31 echo Destination NMake snippet file must be specified
   32 goto done
   33 
   34 :error_var
   35 echo A name must be specified for using '%1'.
   36 goto done
   37 
   38 :error_file
   39 echo A file must be specified for using '%1'.
   40 goto done
   41 
   42 :done