summaryrefslogtreecommitdiff
path: root/web/clip/ms_dos/clp.bat
blob: c1c6ac28069550805010120c8ab8fb3ee0bd25c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
  @echo off
      if z%CLIP_SRC%==z   goto set_environment
      if z%CLIP_TRG%==z   goto set_environment
  :create_INI_file
      echo ..... CLiP the sourcefiles that are given as arguments .....
      echo ..... Report file is CLIP.RPT                          .....
      if exist CLIP.INI del CLIP.INI
      echo This file contains data that is needed to run CLiP > CLIP.INI
      echo And is generated by CLiP_1 >> CLIP.INI
      echo Modifying this file at own risk. >> CLIP.INI
      echo Using CLiP_1 is definitely recommended. >> CLIP.INI
      echo  >> CLIP.INI
      echo INTERACTIVE_MODE         >> CLIP.INI
      echo NO                       >> CLIP.INI
      echo BOTH                     >> CLIP.INI
      echo (*                       >> CLIP.INI
      echo *)                       >> CLIP.INI
      echo *                        >> CLIP.INI
      echo ENDOF                    >> CLIP.INI
      echo #                        >> CLIP.INI
      echo OMITTED                  >> CLIP.INI
      echo ------------ REPORT FILE ----------- >> CLIP.INI
      echo CLIP.RPT >> CLIP.INI
      echo ------------ INPUT FILES ----------- >> CLIP.INI
      if not ".%1"=="."  echo %CLIP_SRC%\%1 >> CLIP.INI
      if not ".%2"=="."  echo %CLIP_SRC%\%2 >> CLIP.INI
      if not ".%3"=="."  echo %CLIP_SRC%\%3 >> CLIP.INI
      if not ".%4"=="."  echo %CLIP_SRC%\%4 >> CLIP.INI
      if not ".%5"=="."  echo %CLIP_SRC%\%5 >> CLIP.INI
      if not ".%6"=="."  echo %CLIP_SRC%\%6 >> CLIP.INI
      if not ".%7"=="."  echo %CLIP_SRC%\%7 >> CLIP.INI
      if not ".%8"=="."  echo %CLIP_SRC%\%8 >> CLIP.INI
      if not ".%9"=="."  echo %CLIP_SRC%\%9 >> CLIP.INI
      echo ------------ MODULES --------------- >> CLIP.INI
      echo ------------ MODULE DIRECTORY ------ >> CLIP.INI
      echo %CLIP_TRG%\ >> CLIP.INI
      echo ------------ END OF INI FILE ------- >> CLIP.INI
      set clip_dir=C:\CLIP
      C:\CLIP\CLIP_2
      goto ready
  :set_environment
      echo ..... Please define SOURCE and TARGET directories .....
      echo ..... You can use CLIP_ENV.BAT for this purpose   .....
  :ready