projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
089cb70
)
[release] Check for useless files before release
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 07:28:05 +0000
(08:28 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 7 Jan 2014 07:28:05 +0000
(08:28 +0100)
devscripts/release.sh
patch
|
blob
|
history
diff --git
a/devscripts/release.sh
b/devscripts/release.sh
index 2766174c1a8477519eb818f287897ebc93d04a72..323acf8cfa92cc7662c21fac44795790867901f4 100755
(executable)
--- 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
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..."
if [ ! -f "updates_key.pem" ]; then echo 'ERROR: updates_key.pem missing'; exit 1; fi
/bin/echo -e "\n### First of all, testing..."