Skip to content

Instantly share code, notes, and snippets.

@TheBrokenRail
Last active June 19, 2020 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheBrokenRail/2ba0388bf3cd7adf38a3bef36c8399fc to your computer and use it in GitHub Desktop.
Save TheBrokenRail/2ba0388bf3cd7adf38a3bef36c8399fc to your computer and use it in GitHub Desktop.
Packages!

Place both shell scripts in the root of your dev environmen and change the package name in package.sh.

#!/bin/sh
set -e
LINES="$(find "$1" -type f -exec cat {} + | wc -l)"
echo "${LINES} $1"
#!/bin/sh
set -e
OLD_PWD="$(pwd)"
cd src/main/java
find com/thebrokenrail/twine -type d -exec "${OLD_PWD}/package.sh" {} \; | sort -rn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment