Created
September 22, 2011 18:19
-
-
Save dandean/1235558 to your computer and use it in GitHub Desktop.
Copy all dlls from the the current directory's subfolders into a different sibling directory.
This file contains hidden or 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
| #!/bin/sh | |
| # | |
| # What this script should do: | |
| # | |
| # /repository <- source directory | |
| # /foo/rad.dll | |
| # /bar/cool.dll | |
| # | |
| # /other <- dlls get copied to here | |
| # /rad.dll | |
| # /cool | |
| REPO=`pwd` | |
| PARENT=`dirname "$REPO"` | |
| RESOURCES="$PARENT/Pop.Ems.Resources" | |
| for D in * | |
| do | |
| CURRENT="$REPO/$D" | |
| if [ -d "$CURRENT" ] | |
| then | |
| cp "$CURRENT/*.dll" "$RESOURCES" | |
| fi | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment