Skip to content

Commit 9e3755c

Browse files
committed
Add auto-update insertion scripts.
Not including the actual privkeys! git-svn-id: file:///home/toad/git-migration/temprepository/trunk/scripts@12467 67a373e5-eb02-0410-a15c-ee090a768436
1 parent 069baa8 commit 9e3755c

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

insert-update

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/bin/bash
2+
# Put the real keys in ~/bin/insert-update-keys
3+
source ~/bin/insert-update-keys
4+
rm -R /usr/src/cvs/freenet-temp*
5+
TEMPLOC=/usr/src/cvs/freenet-temp-$RANDOM
6+
cp -a /usr/src/cvs/eclipse-workspace/Freenet\ 0.7/ $TEMPLOC
7+
cd $TEMPLOC
8+
echo Updating
9+
svn update
10+
echo Reverting
11+
svn revert . -R
12+
echo Building
13+
ant distclean
14+
while [[ ! -s lib/freenet-ext.jar ]] ; do rm -f lib/freenet-ext.jar; ant get-extjar; done
15+
ant -Dsvn.revision=$(svnversion .)
16+
VERSION=`/root/bin/getversion $TEMPLOC`
17+
FILENAME=/var/lib/freenet-experimental/freenet-cvs-r${VERSION}.jar
18+
SOURCENAME=/var/lib/freenet-experimental/freenet-cvs-r${VERSION}-src.tar.bz2
19+
cp -a $TEMPLOC/lib/freenet-cvs-snapshot.jar $FILENAME
20+
ant distclean
21+
tar cjf $SOURCENAME $TEMPLOC
22+
echo Inserting update for build number $VERSION
23+
set -m
24+
/root/bin/insert-update-inner 9481 $FILENAME "${OLDKEY}/update-$VERSION" update-old-$VERSION 1 &
25+
/root/bin/insert-update-inner 9481 $FILENAME "${NEWKEY}/update-$VERSION" update-new-$VERSION 0 &
26+
/root/bin/insert-update-inner 7482 $FILENAME "${OLDKEY}/update-$VERSION" update-old-$VERSION 1 &
27+
/root/bin/insert-update-inner 7482 $FILENAME "${NEWKEY}/update-$VERSION" update-new-$VERSION 0 &
28+
/root/bin/insert-update-inner 9481 $SOURCENAME "${OLDKEY}/update-${VERSION}-source" update-old-${VERSION}-source 2 &
29+
/root/bin/insert-update-inner 9481 $SOURCENAME "${NEWKEY}/update-source-${VERSION}" update-new-${VERSION}-source 2 &
30+
/root/bin/insert-update-inner 7482 $SOURCENAME "${OLDKEY}/${VERSION}-source" update-old-${VERSION}-source 2 &
31+
/root/bin/insert-update-inner 7482 $SOURCENAME "${NEWKEY}/update-source-${VERSION}" update-new-${VERSION}-source 2 &
32+
33+
jobs
34+
wait %1
35+
wait %2
36+
wait %3
37+
wait %4

insert-update-inner

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
PORT="$1"
3+
FILENAME="$2"
4+
URL="$3"
5+
IDENT="$4"
6+
PCLASS="$5"
7+
export FILENAME
8+
export URL
9+
(echo ClientHello
10+
echo "Name=Toad-update-${FILENAME}-${PORT}-${URL}"
11+
echo ExpectedVersion=2
12+
echo End
13+
echo
14+
echo ClientPut
15+
echo "URI=$URL"
16+
echo "Identifier=$IDENT"
17+
echo Verbosity=1023
18+
echo MaxRetries=-1
19+
echo UploadFrom=disk
20+
echo "Filename=$FILENAME"
21+
echo Persistence=forever
22+
echo PriorityClass=$PCLASS
23+
echo Global=true
24+
echo End
25+
) | nc 127.0.0.1 $PORT | sed "/^URI=/d"

0 commit comments

Comments
 (0)