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
#! /bin/bash | |
# Usage --filename--.sh --module-name-- | |
# Where `--filename--.sh` is the name of the file and | |
# `--module-name--` is the name of the module provided the name is the same throughout | |
if [[ $# -eq 0 ]] ; then | |
echo 'Please specify the files to find' | |
exit 0 | |
fi |
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
#!/bin/sh | |
#extract stable version name, case insensitive | |
version=$(find . -iname "README.TXT" -exec grep -oP 'Stable.*:\s\K.*' {} \;) | |
directory=$(basename "$PWD") | |
#target directory, I prefer my home dir | |
target="$HOME/Documents/Projects/svn-wordpress/$directory/trunk/" | |
echo "Version is $version" |