7,7 → 7,9 |
|
PROJ=rebootd |
OUTDIR=output |
PROG=${OUTDIR}/${PROJ} |
SRCDIR=src |
SRCS=${SRCDIR}/rebootd.c |
|
VER_MAJOR=$1 |
VER_MINOR=$2 |
14,6 → 16,7 |
VER_REVISION=`svnversion .` |
RELEASE_NAME=${PROJ}-${VER_MAJOR}.${VER_MINOR}.${VER_REVISION} |
|
SAMPLES=${SRCDIR}/rebootd.conf |
RELDIR=${OUTDIR}/release |
COMMITDIR=releases |
WEBDIR=26th.net:www/26th.net/html/public/projects/rebootd/bin # scp format |
44,7 → 47,7 |
|| { echo "Cannot clear ${RELDIR} dir" >> /dev/stderr; exit 2; } |
|
# commit the release |
echo "Release made successfully. Enter YES to commit it." |
echo "Relase made successfully. Enter YES to commit it." |
read confirm |
if [ "$confirm" != "YES" ] ; then |
echo "you have to answer 'YES' to continue" |
58,10 → 61,8 |
svn commit ${COMMITDIR}/${RELEASE_NAME}.tar.gz \ |
-m "${PROJ}: auto commit of new release ${VER_MAJOR}.${VER_MINOR}.${VER_REVISION}" \ |
|| { echo "Cannot commit ${COMMITDIR}/${RELEASE_NAME}.tar.gz" >> /dev/stderr; exit 2; } |
svn up \ |
|| { echo "Cannot update working copy" >> /dev/stderr; exit 2; } |
|
# publish to web |
# publish web |
scp ${COMMITDIR}/${RELEASE_NAME}.tar.gz ${WEBDIR} \ |
|| { echo "Cannot publish ${COMMITDIR}/${RELEASE_NAME}.tar.gz to ${WEBDIR}" >> /dev/stderr; exit 2; } |
|