mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
Nightly Build script can now deal with testing and unstable branches.
This commit is contained in:
committed by
Carlos R. Mafra
parent
be08535ab4
commit
22730876e4
15
debian/nightly_build.sh
vendored
15
debian/nightly_build.sh
vendored
@@ -8,7 +8,17 @@ CHANGELOG="Automatic build from the GIT on `date`"
|
||||
BUILDLOG="${HOME}/log/wmaker-testing-nightly.log"
|
||||
|
||||
STATUSCMD="git log -1 --pretty=oneline"
|
||||
PULLCMD="git pull"
|
||||
PULLCMD1="git fetch"
|
||||
PULLCMD2="git checkout origin/master"
|
||||
if [ -n "${WMAKER_DISTRO}" ]; then
|
||||
case ${WMAKER_DISTRO} in
|
||||
unstable)
|
||||
PULLCMD2="git checkout origin/next"
|
||||
BUILDLOG="${HOME}/log/wmaker-unstable-nightly.log"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
FORCE="0"
|
||||
|
||||
if [ $# -gt 0 ]; then
|
||||
@@ -36,7 +46,8 @@ errorExit() {
|
||||
doPull() {
|
||||
RC="1"
|
||||
LATEST="`$STATUSCMD`"
|
||||
$PULLCMD >>$BUILDLOG 2>&1 || errorExit "Error pulling from the repo"
|
||||
$PULLCMD1 >>$BUILDLOG 2>&1 || errorExit "Error pulling from the repo"
|
||||
$PULLCMD2 >>$BUILDLOG 2>&1 || errorExit "Error pulling from the repo"
|
||||
CURRENT="`$STATUSCMD`"
|
||||
if [ "$FORCE" = "1" -o "$LATEST" != "$CURRENT" ]; then
|
||||
echo "last revision: $LATEST" >>$BUILDLOG
|
||||
|
||||
Reference in New Issue
Block a user