aboutsummaryrefslogtreecommitdiff
path: root/devscripts
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:28:05 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-01-07 08:28:05 +0100
commit50144133c569986d761cb15d779e5dc4669d9001 (patch)
tree52df9f8cb3e2a974ac53a369f19bc69ad85e79e2 /devscripts
parent089cb705e82d4672a5a607f6d24e14244f17876c (diff)
[release] Check for useless files before release
Diffstat (limited to 'devscripts')
-rwxr-xr-xdevscripts/release.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/devscripts/release.sh b/devscripts/release.sh
index 2766174c1..323acf8cf 100755
--- a/devscripts/release.sh
+++ b/devscripts/release.sh
@@ -24,6 +24,8 @@ if [ -z "$1" ]; then echo "ERROR: specify version number like this: $0 1994.09.0
version="$1"
if [ ! -z "`git tag | grep "$version"`" ]; then echo 'ERROR: version already present'; exit 1; fi
if [ ! -z "`git status --porcelain | grep -v CHANGELOG`" ]; then echo 'ERROR: the working directory is not clean; commit or stash changes'; exit 1; fi
+useless_files=$(find youtube_dl -type f -not -name '*.py')
+if [ ! -z "$useless_files" ]; then echo "ERROR: Non-.py files in youtube_dl: $useless_files"; exit 1; fi
if [ ! -f "updates_key.pem" ]; then echo 'ERROR: updates_key.pem missing'; exit 1; fi
/bin/echo -e "\n### First of all, testing..."