User Tools

Site Tools


doc:tools_filelist
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


doc:tools_filelist [2014/03/02 07:55] (current) – created admin
Line 1: Line 1:
 +====== Filelist.vbs ======
 +
 +
 +This little utility is used to generate a list of files in a directory in a makefile compatible format.
 +
 +It's called as vbs script via
 +
 +  cscript filelist.vbs directory_to_scan Prefix1 fileext1 [Prefix2 fileext2] > outputfile.txt
 +  
 +But let's take an example - having a directory content like this
 +
 +<code>
 +script1.lua
 +spec1.mdx
 +spec2.mdx
 +script2.lua
 +spec3.mdx
 +somethingelse.foo
 +</code>
 +
 +then the call
 +
 +  cscript filelist.vbs . "SOURCES=" lua "SPECS=" mdx >output.txt
 +  
 +would generate the following file output text:
 +<code>
 +SOURCES= script1.lua script2.lua
 +SPECS= spec1.mdx spec2.mdx spec3.mdx
 +</code>
 +
 +where this output file can than easily included in e.g. makefiles
  
doc/tools_filelist.txt · Last modified: 2014/03/02 07:55 by admin