Created
August 2, 2013 20:29
-
-
Save rwblackburn/6143197 to your computer and use it in GitHub Desktop.
Windows batch file script which will loop over subfolders and create a list of the *.js files in them. Assumes the script is in a /build folder, and the sub-folders are in a /js folder along side the /build folder (like one finds in the HTML5BoilerPlate project).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET Files= | |
FOR /D %%d IN (../js/*) do ( | |
IF %%d NEQ test IF %%d NEQ vendor ( | |
FOR %%f IN (../js/%%d/*.js) DO SET Files=!Files! ../js/%%d/%%~nxf | |
) | |
) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment