]>
git.ipfire.org Git - thirdparty/squid.git/blob - mksnapshot-cron.sh
3 # Nightly cron job to generate snapshot releases
5 versions
=/server
/httpd
/htdocs
/squid-cache.org
/content
/Versions
/
6 TMPDIR
=/home
/squidadm
/${LOGNAME}.cron
8 if [ -d ${TMPDIR} ]; then
13 trap "echo FAIL-BUILD_snapshot-cron; cd /; chmod -R +w ${TMPDIR}; rm -rf ${TMPDIR}" 0
15 PATH
=/sbin
:/bin
:/usr
/sbin
:/usr
/bin
:/usr
/local
/bin
18 # Be nice to our friends. This is a batch job
19 renice
10 $$
>/dev
/null
30 dst
=${versions}/${dir}/${ver}
31 out
=${6:-`basename $branch`}
32 $mksnap ${branch} ${6} 2>&1 |
grep -v "set owner/group"
33 for file in `cat ${out}.out` ; do
45 type=`echo ${file} | sed -e 's/.*\.tar\.gz/.tar.gz/' -e 's/.*\.tar\.bz2/.tar.bz2/' -e 's/.*\.patch/.patch/' -e 's/.*\.diff/.diff/' -e 's/.*-RELEASENOTES.html/-RELEASENOTES.html/' -e 's/^.*ChangeLog.txt$/-ChangeLog.txt/' -e 's/.*-cfgman/-cfgman/'`
49 rm -f ${dst}/${file}.md5
51 md5
${file} >${dst}/${file}.md5
52 cp -p ${file} ${dst}/${file}
55 # update snapshot symlink
56 rm -f ${dst}/squid-
${ver}.snapshot
$type
57 ln -s ${file} ${dst}/squid-${ver}.snapshot${type}
58 rm -f ${dst}/squid-${ver}.snapshot${type}.md5
59 ln -s ${file}.md5 ${dst}/squid-${ver}.snapshot${type}.md5
62 # cleanup old snapshots
63 ls ${dst}/*-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-r*[0-9]${type} | \
64 sed -e 's/.*-\([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]-r[0-9]+'${type}'\)/\1/' | \
65 sort -r |
tail +${save} | \
67 rm -f ${dst}/*-${f} ${dst}/*-${f}.md5
72 # update dynamic index pages Last-Modified info
73 touch ${dst}/index.dyn
78 mkdir
-p ${dst}/cfgman
79 tar -C ${dst}/cfgman -zxf ${dst}/${file}
82 rm -f ${dst}/cfgman.html
83 ln -s ${dst}/${file} ${dst}/cfgman.html
86 rm -f ${dst}/cfgman.html.gz
87 ln -s ${dst}/${file} ${dst}/cfgman.html.gz
90 mkdir
-p ${dst}/manuals
91 tar -C ${dst}/manuals -zxf ${dst}/${file}
99 # autotool derived files not kept in trunk, but still need to bootstrap for make dist
100 ..
/commit
/bootstrap squid-3
101 make_snapshot ..
/commit
/squid-
3/mksnapshot.sh trunk v3
3.HEAD
6
103 rm -f /server
/httpd
/htdocs
/squid-cache.org
/CONTRIBUTORS.new
104 cp ..
/commit
/squid-
3/CONTRIBUTORS
/server
/httpd
/htdocs
/squid-cache.org
/CONTRIBUTORS.new
105 chmod 444 /server
/httpd
/htdocs
/squid-cache.org
/CONTRIBUTORS.new
106 mv -f /server
/httpd
/htdocs
/squid-cache.org
/CONTRIBUTORS.new
/server
/httpd
/htdocs
/squid-cache.org
/content
/CONTRIBUTORS.txt
108 rm -f /server
/httpd
/htdocs
/squid-cache.org
/SPONSORS.new
109 cp ..
/commit
/squid-
3/SPONSORS
/server
/httpd
/htdocs
/squid-cache.org
/SPONSORS.new
110 chmod 444 /server
/httpd
/htdocs
/squid-cache.org
/SPONSORS.new
111 mv -f /server
/httpd
/htdocs
/squid-cache.org
/SPONSORS.new
/server
/httpd
/htdocs
/squid-cache.org
/content
/SPONSORS.txt
113 ..
/commit
/bootstrap squid-3.3
114 make_snapshot ..
/commit
/squid-
3/mksnapshot.sh
3.3 v3
3.3 30
116 ..
/commit
/bootstrap squid-3.2
117 make_snapshot ..
/commit
/squid-
3/mksnapshot.sh branches
/SQUID_3_2 v3
3.2 30
119 ..
/commit
/bootstrap squid-3.1
120 make_snapshot ..
/commit
/squid-
3/mksnapshot.sh branches
/SQUID_3_1 v3
3.1 30
122 #../commit/bootstrap squid-3.0
123 #make_snapshot ../commit/squid-3/mksnapshot.sh branches/SQUID_3_0 v3 3.0 3
125 #../commit/bootstrap squid-2
126 #make_snapshot ../commit/squid-2/mksnapshot.sh HEAD v2 HEAD 3
128 #../commit/bootstrap squid-2.7
129 #make_snapshot ../commit/squid-2.7/mksnapshot.sh SQUID_2_7 v2 2.7 3
131 #../commit/bootstrap squid-2.6
132 #make_snapshot ../commit/squid-2.6/mksnapshot.sh SQUID_2_6 v2 2.6 3
134 #../commit/bootstrap squid-2.5
135 #make_snapshot ../commit/squid-2.5/mksnapshot.sh SQUID_2_5 v2 2.5 3
137 #../commit/squid3-SQUID2.sync