home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / varia / dvc / scripts / makeliblist < prev   
Text File  |  1997-07-24  |  1KB  |  41 lines

  1. ;$VER: MakeLibList 1.1 (24.7.1997) #DOS © Msi Software
  2.  
  3. ; Example DOS Script for creating a Library list with (and for) DVC.
  4. ;
  5. ;********************************************************************
  6. ; I had all these GREAT ideas "buzzing" in my head,
  7. ; and by accident I hit the snooze button!
  8. ; Roger Hågensen...
  9. ;
  10.  
  11. FAILAT 10
  12. ECHO "MakeLibList 1.1 © Msi Software 1997"
  13.  
  14. ; Add ID to DVC list! (The single > create a file, >> appends to a file!)
  15. ECHO >LibList.dvc "DVC1 (Don't change this line!)"
  16.  
  17. ; Add $VER: line, you may edit this one later!
  18. ECHO >>LibList.dvc ";$VER: LibList.dvc 1.0 (24.7.1997) #DVC MakeLibList 1.1*N"
  19.  
  20. ; Here the magic (and the mess) begin!
  21.  
  22. ECHO >T:script.tmp "FAILAT 10"
  23. ECHO >>T:script.tmp "ECHO >T:unsorted.tmp *"*" NOLINE"
  24. ECHO >>T:script.tmp "RESIDENT C:DVC FORCE"
  25.  
  26. ;This line let C:List do the dirty work on listing the LIBS: drawer,
  27. ;and also creating the script part that generate the unsorted list.
  28. ECHO "Getting filenames..."
  29. LIST LIBS: FILES ALL LFORMAT="DVC *"%p%n*" INFO >>T:unsorted.tmp" >>T:script.tmp
  30.  
  31. ECHO >>T:script.tmp "RESIDENT C:DVC REMOVE"
  32. ECHO "Getting fileversions..."
  33. EXECUTE T:script.tmp
  34. DELETE T:script.tmp QUIET
  35. ECHO "Sorting filenames..."
  36. SORT T:unsorted.tmp T:sorted.tmp
  37. DELETE T:unsorted.tmp QUIET
  38. TYPE T:sorted.tmp >>LibList.dvc
  39. DELETE T:sorted.tmp QUIET
  40. ECHO "Finished!"
  41.