Subversion Repositories SvarDOS

Rev

Rev 839 | Rev 844 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 839 Rev 842
Line 32... Line 32...
32
 
32
 
33
#!/bin/sh
33
#!/bin/sh
34
 
34
 
35
SVNLOOK=/usr/bin/svnlook
35
SVNLOOK=/usr/bin/svnlook
36
REPOS="$1"
36
REPOS="$1"
37
TXN="$2"
37
REV="$2"
38
 
38
 
39
# first of all, make sure to set a flag that says "svn content changed" so a
39
# first of all, make sure to set a flag that says "svn content changed" so a
40
# cron job can update its local copy later
40
# cron job can update its local copy later
41
echo date > /tmp/svardos_repo_changed.flag
41
echo `date` > /tmp/svardos_repo_changed.flag
42
 
42
 
43
# check if any of the following locations have been updated during the commit:
43
# check if any of the following locations have been updated during the commit:
44
#  - files
44
#  - files
45
#  - packages/core/
45
#  - packages/core/
46
#  - build.sh
46
#  - build.sh
47
#
47
#
48
# any change to one of these locations means that the content of the
48
# any change to one of these locations means that the content of the
49
# installation images may have been impacted, hence a rebuild may be necessary.
49
# installation images may have been impacted, hence a rebuild may be necessary.
50
#
50
#
51
$SVNLOOK changed -t "$TXN" "$REPOS" | grep -e ' files' -e ' build.sh' -e ' packages/core/'
51
$SVNLOOK changed -r "$REV" "$REPOS" | grep -e ' files' -e ' build.sh' -e ' packages/core/' > /dev/null
52
 
52
 
53
# if a location matched, then set a flag so a cron job rebuilds the images
53
# if a location matched, then set a flag so a cron job rebuilds the images
54
# and send an information message back to the committer.
54
# and send an information message back to the committer.
55
if [ $? -eq 0 ] ; then
55
if [ $? -eq 0 ] ; then
56
  echo date > /tmp/svardos_rebuild_please.flag
56
  echo `date` > /tmp/svardos_rebuild_please.flag
57
  echo "NOTICE: a build-impacting location has been updated." >&2
57
  echo "NOTICE: a build-impacting location has been updated." >&2
58
  echo "        install images have been scheduled for a rebuilt." >&2
58
  echo "        install images have been scheduled for a rebuilt." >&2
59
  exit 1
59
  exit 1
60
fi
60
fi
61
 
61
 
-
 
62
exit 0
-
 
63
 
62
 
64
 
63
=== SVN CLIENT ================================================================
65
=== SVN CLIENT ================================================================
64
 
66
 
65
The SvarDOS repository should be checked out in /srv/svardos/:
67
The SvarDOS repository should be checked out in /srv/svardos/:
66
 
68