forked from openpnp/openpnp
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathupload-snapshot.sh
More file actions
23 lines (22 loc) · 814 Bytes
/
upload-snapshot.sh
File metadata and controls
23 lines (22 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
echo "Checking for STOPSHIP in source."
grep -ri stopship src
if [ $? -eq 0 ]; then
echo "Files found with STOPSHIP. Aborting release."
exit 1
fi
echo "Checking for files without a license header."
grep -Lr "OpenPnP is free software: you can redistribute it and/or modify" --include='*.java' .
if [ $? -eq 0 ]; then
echo "Files missing license. Aborting release."
exit 1
fi
rm -rf doc/javadoc
javadoc -sourcepath src/main/java -subpackages org.openpnp -d doc/javadoc
scp -r doc/javadoc/* jason@vonnieda.org:openpnp.org/htdocs/doc/javadoc
DATE=`date +%F-%H-%M-%S`
FILENAME="OpenPnP-Snapshot-$DATE.zip"
rm -f log/*
zip -x *.git* -x *.svn* -x installers/* -r $FILENAME *
scp $FILENAME jason@vonnieda.org:openpnp.org/htdocs/downloads/snapshots
rm $FILENAME
echo "http://openpnp.org/downloads/snapshots/$FILENAME"