Skip to content

Instantly share code, notes, and snippets.

@dandean
Created September 22, 2011 18:19
Show Gist options
  • Select an option

  • Save dandean/1235558 to your computer and use it in GitHub Desktop.

Select an option

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.
#!/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