home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / SYS / S / CopyToHD < prev    next >
AmigaDOS Script File  |  1995-10-09  |  5KB  |  162 lines

  1. .key FROM/A,TO/A,MPUSEMETATOOL/S,USEMETATOOL/S,COPYDRAWERANDICON/S,LANGUAGE
  2. .bra {
  3. .ket }
  4.  
  5.  
  6. IF NOT EXISTS ":{FROM}"
  7.     IF {LANGUAGE} EQ "deutsch"
  8.         :C/AutoReq "-tInterner Fehler:" "-tVerzeichnis »{FROM}«" "-texistiert nicht." -nOK
  9.     ELSE
  10.         :C/AutoReq "-tInternal error:" "-tDrawer »{FROM}«" "-tdoes not exist." -nOK
  11.     ENDIF
  12.     QUIT 20
  13. ENDIF
  14.  
  15.  
  16. FailAt 25
  17.  
  18. IF {LANGUAGE} EQ "deutsch"
  19.     :C/WaitingReq ON "MPWAITINGREQ{$$}" "*nKopier-Operation wird gestartet*nQuelle: {FROM}*nZiel: {TO}*n*n" CON:40/30/550/140/INFO
  20. ELSE
  21.     :C/WaitingReq ON "MPWAITINGREQ{$$}" "*nCopy command in process*nSource: {FROM}*nDestination: {TO}*n*n" CON:40/30/550/140/INFO
  22. ENDIF
  23.  
  24. IF "{MPUSEMETATOOL}" EQ "MPUSEMETATOOL"
  25.     Skip UseMetaTool
  26. ENDIF
  27.  
  28. IF "{USEMETATOOL}" EQ "USEMETATOOL"
  29.     Skip UseMetaTool
  30. ENDIF
  31.  
  32. Skip NoMetaTool
  33.  
  34. LAB UseMetaTool
  35. IF NOT EXISTS ENV:METACONFIG
  36.     :C/Version >NIL: 37
  37.     IF WARN
  38.         Copy :MetaTool/MetaTool33.config-HD S:
  39.         SetEnv METACONFIG S:MetaTool33.config-HD
  40.         IF {LANGUAGE} EQ "deutsch"
  41.             :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Bitte passen Sie die Datei S:MetaTool33.config-HD an Ihr System an.*n*n"
  42.         ELSE
  43.             :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Please edit the file S:MetaTool33.config-HD to fit in your system.*n*n"
  44.         ENDIF
  45.         IF EXISTS ENV:EDITOR
  46.             "$EDITOR" S:MetaTool33.config-HD
  47.         ENDIF
  48.     ELSE
  49.         :C/Version >NIL: 39
  50.         IF WARN
  51.             Copy :MetaTool/MetaTool37.config-HD S:
  52.             SetEnv METACONFIG S:MetaTool37.config-HD
  53.             IF {LANGUAGE} EQ "deutsch"
  54.                 :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Bitte passen Sie die Datei S:MetaTool37.config-HD an Ihr System an.*n*n"
  55.             ELSE
  56.                 :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Please edit the file S:MetaTool37.config-HD to fit in your system.*n*n"
  57.             ENDIF
  58.             IF EXISTS ENV:EDITOR
  59.                 "$EDITOR" S:MetaTool37.config-HD
  60.             ENDIF
  61.         ELSE
  62.             Copy :MetaTool/MetaTool39.config-HD S:
  63.             SetEnv METACONFIG S:MetaTool39.config-HD
  64.             IF {LANGUAGE} EQ "deutsch"
  65.                 :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Bitte passen Sie die Datei S:MetaTool39.config-HD an Ihr System an.*n*n"
  66.             ELSE
  67.                 :C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Please edit the file S:MetaTool39.config-HD to fit in your system.*n*n"
  68.             ENDIF
  69.             IF EXISTS ENV:EDITOR
  70.                 "$EDITOR" S:MetaTool39.config-HD
  71.             ENDIF
  72.         ENDIF
  73.     ENDIF
  74.     Copy ENV:METACONFIG ENVARC:
  75. ENDIF
  76.  
  77. LAB NoMetaTool
  78.  
  79. Assign MPTMPCOPYDIR{$$}: ":"
  80. IF "{COPYDRAWERANDICON}" EQ "COPYDRAWERANDICON"
  81.     Copy FROM "MPTMPCOPYDIR{$$}:{FROM}(%|.info)" TO "{TO}" ALL QUIET CLONE
  82.     MPTMPCOPYDIR{$$}:C/MPGetDestPath >ENV:MPNEWPATH "{FROM}" "{TO}"
  83.     MPTMPCOPYDIR{$$}:C/icontools unsnapshot "$MPNEWPATH.info"
  84.     CD "$MPNEWPATH"
  85.     Delete ENV:MPNEWPATH QUIET
  86. ELSE
  87.     Copy FROM "MPTMPCOPYDIR{$$}:{FROM}" TO "{TO}" ALL QUIET CLONE
  88.     MPTMPCOPYDIR{$$}:C/icontools unsnapshot "{TO}.info"
  89.     CD "{TO}"
  90. ENDIF
  91.  
  92. IF {LANGUAGE} EQ "deutsch"
  93.     MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Attribute und Kommentare werden angepaßt*n*n"
  94. ELSE
  95.     MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Restoring protection flags and file comments*n*n"
  96. ENDIF
  97.  
  98. List >ENV:MPTMPSADVAR{$$} MPTMPCOPYDIR{$$}:SYS/T/Test LFORMAT "%a%c"
  99. IF $MPTMPSADVAR{$$} EQ "-sp-r--dTest-Kommentar"
  100.     IF {LANGUAGE} EQ "deutsch"
  101.         MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "=> Oops, das ist auf ihrem System gar nicht nötig!*n   Sie haben wohl CD-Write installiert.*n*n"
  102.     ELSE
  103.         MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "=> Oops, this is not necessary on your system!*n   You probably have CD-Write running.*n*n"
  104.     ENDIF
  105. ELSE
  106.     Resident MPTMPCOPYDIR{$$}:C/SetComment PURE ADD
  107.     Resident MPTMPCOPYDIR{$$}:C/SetProtection PURE ADD
  108.     Execute "MPTMPCOPYDIR{$$}:SetAttributesDir/{FROM}/SetAttributes" "MPTMPCOPYDIR{$$}:SetAttributesDir/{FROM}"
  109.     Resident SetComment REMOVE
  110.     Resident SetProtection REMOVE
  111. ENDIF
  112. Delete ENV:MPTMPSADVAR{$$}
  113.  
  114. IF {LANGUAGE} EQ "deutsch"
  115.     MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Default-Tools werden angepaßt*n*n"
  116. ELSE
  117.     MPTMPCOPYDIR{$$}:C/WaitingReq UPDATE "MPWAITINGREQ{$$}" "Restoring default tools*n*n"
  118. ENDIF
  119.  
  120. Echo  >RAM:CPTOHDIT{$$} "TEXT"
  121. Echo >>RAM:CPTOHDIT{$$} "$FPMTTEXT"
  122. Echo >>RAM:CPTOHDIT{$$} "GUIDE"
  123. Echo >>RAM:CPTOHDIT{$$} "$FPMTGUIDE"
  124. Echo >>RAM:CPTOHDIT{$$} "INST"
  125. Echo >>RAM:CPTOHDIT{$$} "$FPMTINST"
  126. Echo >>RAM:CPTOHDIT{$$} "ICONX"
  127. Echo >>RAM:CPTOHDIT{$$} "$FPMTICONX"
  128. Echo >>RAM:CPTOHDIT{$$} "HTML"
  129. Echo >>RAM:CPTOHDIT{$$} "$FPMTHTML"
  130. Echo >>RAM:CPTOHDIT{$$} "BIN"
  131. Echo >>RAM:CPTOHDIT{$$} "$FPMTBIN"
  132. Echo >>RAM:CPTOHDIT{$$} "REXX"
  133. Echo >>RAM:CPTOHDIT{$$} "$FPMTREXX"
  134. Echo >>RAM:CPTOHDIT{$$} "PS"
  135. Echo >>RAM:CPTOHDIT{$$} "$FPMTPS"
  136. Echo >>RAM:CPTOHDIT{$$} "8SVX"
  137. Echo >>RAM:CPTOHDIT{$$} "$FPMT8SVX"
  138. Echo >>RAM:CPTOHDIT{$$} "JPEG"
  139. Echo >>RAM:CPTOHDIT{$$} "$FPMTJPEG"
  140. Echo >>RAM:CPTOHDIT{$$} "GIF"
  141. Echo >>RAM:CPTOHDIT{$$} "$FPMTGIF"
  142. Echo >>RAM:CPTOHDIT{$$} "ILBM"
  143. Echo >>RAM:CPTOHDIT{$$} "$FPMTILBM"
  144. Echo >>RAM:CPTOHDIT{$$} "MOVIE"
  145. Echo >>RAM:CPTOHDIT{$$} "$FPMTMOVIE"
  146. Echo >>RAM:CPTOHDIT{$$} "ANIM"
  147. Echo >>RAM:CPTOHDIT{$$} "$FPMTANIM"
  148. Echo >>RAM:CPTOHDIT{$$} "DVI"
  149. Echo >>RAM:CPTOHDIT{$$} "$FPMTDVI"
  150. Echo >>RAM:CPTOHDIT{$$} "TEX"
  151. Echo >>RAM:CPTOHDIT{$$} "$FPMTTEX"
  152. Echo >>RAM:CPTOHDIT{$$} "SOURCE"
  153. Echo >>RAM:CPTOHDIT{$$} "$FPMTSOURCE"
  154.  
  155. MPTMPCOPYDIR{$$}:C/icontools replace_mp_file "" RAM:CPTOHDIT{$$} recursive
  156.  
  157. MPTMPCOPYDIR{$$}:C/WaitingReq OFF "MPWAITINGREQ{$$}"
  158. Delete QUIET RAM:CPTOHDIT{$$}
  159.  
  160. CD MPTMPCOPYDIR{$$}:
  161. Assign MPTMPCOPYDIR{$$}:
  162.