- New version mechanism in place
This commit is contained in:
parent
32e6070a26
commit
09419702d8
4
dist/NewVersion.txt
vendored
4
dist/NewVersion.txt
vendored
@ -1,7 +1,7 @@
|
|||||||
Where are the version numbers? (way too distributed)
|
Where are the version numbers? (way too distributed)
|
||||||
|
|
||||||
- Gui has a version number in Version.py
|
- Gui has a version number in Version.py. This is propagated into the
|
||||||
- Scyther has release.h
|
binary and into the archive name as well.
|
||||||
- ChangeLog
|
- ChangeLog
|
||||||
- Readme.txt
|
- Readme.txt
|
||||||
|
|
||||||
|
15
dist/makedist.sh
vendored
15
dist/makedist.sh
vendored
@ -18,11 +18,6 @@
|
|||||||
#
|
#
|
||||||
# Parameters
|
# Parameters
|
||||||
|
|
||||||
RELEASE="scyther-1.0-beta6"
|
|
||||||
|
|
||||||
ARCHIVE="$RELEASE.tgz"
|
|
||||||
ZIPPED="$RELEASE.zip"
|
|
||||||
|
|
||||||
# Creates a temporary subdirectory here.
|
# Creates a temporary subdirectory here.
|
||||||
TMPDIR=/tmp/scytherdist
|
TMPDIR=/tmp/scytherdist
|
||||||
WORKNAME=scyther
|
WORKNAME=scyther
|
||||||
@ -40,8 +35,6 @@ MANUAL=scyther-manual.pdf
|
|||||||
|
|
||||||
WORKDIR=$TMPDIR/$WORKNAME
|
WORKDIR=$TMPDIR/$WORKNAME
|
||||||
CURDIR=$PWD
|
CURDIR=$PWD
|
||||||
DEST=$PWD/$ARCHIVE
|
|
||||||
ZIPDEST=$PWD/$ZIPPED
|
|
||||||
DOCDEST=$WORKDIR/doc
|
DOCDEST=$WORKDIR/doc
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -69,6 +62,14 @@ svn cat $DOCROOT/$MANUAL >$WORKDIR/$MANUAL
|
|||||||
#
|
#
|
||||||
# Collected all needed data, finish up
|
# Collected all needed data, finish up
|
||||||
|
|
||||||
|
TAGVERSION=`awk 'BEGIN { FS="\""; } { print $2; }' ../gui/Gui/Version.py`
|
||||||
|
RELEASE="scyther-$TAGVERSION"
|
||||||
|
|
||||||
|
ARCHIVE="$RELEASE.tgz"
|
||||||
|
ZIPPED="$RELEASE.zip"
|
||||||
|
DEST=$PWD/$ARCHIVE
|
||||||
|
ZIPDEST=$PWD/$ZIPPED
|
||||||
|
|
||||||
# Compress
|
# Compress
|
||||||
cd $TMPDIR
|
cd $TMPDIR
|
||||||
tar zcvf $DEST $WORKNAME
|
tar zcvf $DEST $WORKNAME
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -13,8 +13,6 @@ usertype ExpiredTimeStamp;
|
|||||||
secret k: Function;
|
secret k: Function;
|
||||||
|
|
||||||
const Alice, Bob, Simon, Eve: Agent;
|
const Alice, Bob, Simon, Eve: Agent;
|
||||||
const Fresh: Function;
|
|
||||||
const Compromised: Function;
|
|
||||||
|
|
||||||
const ne: Nonce;
|
const ne: Nonce;
|
||||||
const kee: SessionKey;
|
const kee: SessionKey;
|
||||||
@ -38,7 +36,6 @@ protocol neustub^Repeat(I,R,S)
|
|||||||
claim_I1(I,Secret, Kir);
|
claim_I1(I,Secret, Kir);
|
||||||
claim_I2(I,Niagree);
|
claim_I2(I,Niagree);
|
||||||
claim_I3(I,Nisynch);
|
claim_I3(I,Nisynch);
|
||||||
claim_I4(I,Empty,(Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role R
|
role R
|
||||||
@ -54,7 +51,6 @@ protocol neustub^Repeat(I,R,S)
|
|||||||
claim_R1(R,Secret, Kir);
|
claim_R1(R,Secret, Kir);
|
||||||
claim_R2(R,Niagree);
|
claim_R2(R,Niagree);
|
||||||
claim_R3(R,Nisynch);
|
claim_R3(R,Nisynch);
|
||||||
claim_R4(R,Empty,(Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role S
|
role S
|
||||||
@ -78,7 +74,6 @@ protocol neustub(I,R,S)
|
|||||||
claim_I1(I,Secret, Kir);
|
claim_I1(I,Secret, Kir);
|
||||||
claim_I2(I,Niagree);
|
claim_I2(I,Niagree);
|
||||||
claim_I3(I,Nisynch);
|
claim_I3(I,Nisynch);
|
||||||
claim_I4(I,Empty,(Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role R
|
role R
|
||||||
@ -96,7 +91,6 @@ protocol neustub(I,R,S)
|
|||||||
claim_R1(R,Secret, Kir);
|
claim_R1(R,Secret, Kir);
|
||||||
claim_R2(R,Niagree);
|
claim_R2(R,Niagree);
|
||||||
claim_R3(R,Nisynch);
|
claim_R3(R,Nisynch);
|
||||||
claim_R4(R,Empty,(Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role S
|
role S
|
||||||
|
@ -8,30 +8,6 @@
|
|||||||
secret k : Function;
|
secret k : Function;
|
||||||
|
|
||||||
usertype SessionKey;
|
usertype SessionKey;
|
||||||
const Fresh: Function;
|
|
||||||
const Compromised: Function;
|
|
||||||
|
|
||||||
protocol yahalom^KeyCompromise(C)
|
|
||||||
{
|
|
||||||
// Read the names of 3 agents and disclose a session between them including
|
|
||||||
// corresponding session key to simulate key compromise
|
|
||||||
role C {
|
|
||||||
const Ni,Nr: Nonce;
|
|
||||||
const Kir: SessionKey;
|
|
||||||
var I,R,S: Agent;
|
|
||||||
|
|
||||||
read_!C1(C,C, I,R,S);
|
|
||||||
send_!C2(C,C, I,Ni,
|
|
||||||
R,{I,Ni,Nr}k(R,S),
|
|
||||||
{R,Kir,Ni,Nr}k(I,S),
|
|
||||||
{I,Kir}k(R,S),
|
|
||||||
{Nr}Kir,
|
|
||||||
Kir
|
|
||||||
);
|
|
||||||
claim_C3(C,Empty, (Compromised,Kir));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
protocol yahalom(I,R,S)
|
protocol yahalom(I,R,S)
|
||||||
{
|
{
|
||||||
@ -47,8 +23,6 @@ protocol yahalom(I,R,S)
|
|||||||
send_4(I,R, T, {Nr}Kir );
|
send_4(I,R, T, {Nr}Kir );
|
||||||
|
|
||||||
claim_I1(I, Secret,Kir);
|
claim_I1(I, Secret,Kir);
|
||||||
claim_I2(I, Nisynch);
|
|
||||||
claim_I3(I, Empty, (Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role R
|
role R
|
||||||
@ -63,8 +37,6 @@ protocol yahalom(I,R,S)
|
|||||||
read_4(I,R, {I,Kir}k(R,S) , {Nr}Kir );
|
read_4(I,R, {I,Kir}k(R,S) , {Nr}Kir );
|
||||||
|
|
||||||
claim_R1(R, Secret,Kir);
|
claim_R1(R, Secret,Kir);
|
||||||
claim_R2(R, Nisynch);
|
|
||||||
claim_R3(R, Empty, (Fresh,Kir));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
role S
|
role S
|
||||||
@ -74,8 +46,16 @@ protocol yahalom(I,R,S)
|
|||||||
|
|
||||||
read_2(R,S, R, {I,Ni,Nr}k(R,S) );
|
read_2(R,S, R, {I,Ni,Nr}k(R,S) );
|
||||||
send_3(S,I, {R,Kir,Ni,Nr}k(I,S), {I,Kir}k(R,S) );
|
send_3(S,I, {R,Kir,Ni,Nr}k(I,S), {I,Kir}k(R,S) );
|
||||||
|
|
||||||
|
claim(S, Secret, Ni);
|
||||||
|
claim(S, Secret, Nr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const Alice,Bob,Simon : Agent;
|
const Alice,Bob,Simon : Agent;
|
||||||
|
|
||||||
|
const Eve: Agent;
|
||||||
|
untrusted Eve;
|
||||||
|
|
||||||
|
compromised k(Eve,Simon);
|
||||||
|
|
||||||
|
@ -22,14 +22,9 @@ if (SVNVERSION_EXECUTABLE)
|
|||||||
mark_as_advanced (SVN_Result)
|
mark_as_advanced (SVN_Result)
|
||||||
if (NOT ${SVN_Result} STREQUAL "exported")
|
if (NOT ${SVN_Result} STREQUAL "exported")
|
||||||
# svnversion gives useful stuff
|
# svnversion gives useful stuff
|
||||||
# write to file
|
## write to file
|
||||||
file (WRITE version.h "#define SVNVERSION \"${SVN_Result}\"\n")
|
#file (WRITE version.h "#define SVNVERSION \"${SVN_Result}\"\n")
|
||||||
if (UNIX)
|
|
||||||
# Unix system
|
|
||||||
# mark for dynamic generation in
|
|
||||||
# Makefile
|
|
||||||
set (SVNVERSION_DYNAMIC true)
|
set (SVNVERSION_DYNAMIC true)
|
||||||
endif (UNIX)
|
|
||||||
endif (NOT ${SVN_Result} STREQUAL "exported")
|
endif (NOT ${SVN_Result} STREQUAL "exported")
|
||||||
mark_as_advanced (SVNDIR)
|
mark_as_advanced (SVNDIR)
|
||||||
endif (SVNVERSION_EXECUTABLE)
|
endif (SVNVERSION_EXECUTABLE)
|
||||||
@ -47,13 +42,12 @@ if (SVNVERSION_DYNAMIC)
|
|||||||
# current directory)
|
# current directory)
|
||||||
DEPENDS ${Scyther_sources}
|
DEPENDS ${Scyther_sources}
|
||||||
DEPENDS .svn
|
DEPENDS .svn
|
||||||
COMMAND echo
|
COMMAND ./subbuild-version-information.sh
|
||||||
ARGS "\\#define SVNVERSION \\\"`${SVNVERSION_EXECUTABLE}`\\\"" >version.h
|
COMMENT "Generating subversion and tag version information in version.h using svnversion command"
|
||||||
COMMENT "Generating subversion version information in version.h using svnversion command"
|
|
||||||
)
|
)
|
||||||
else (SVNVERSION_DYNAMIC)
|
else (SVNVERSION_DYNAMIC)
|
||||||
# Don't dynamically generate, simply empty every time
|
# Don't dynamically generate, simply empty every time
|
||||||
file (WRITE version.h "#define SVNVERSION \"Unknown\"\n")
|
file (WRITE version.h "#define SVNVERSION \"Unknown\"\n#define TAGVERSION \"Unknown\"")
|
||||||
endif (SVNVERSION_DYNAMIC)
|
endif (SVNVERSION_DYNAMIC)
|
||||||
|
|
||||||
# add the version number to the sources
|
# add the version number to the sources
|
||||||
|
@ -1 +0,0 @@
|
|||||||
#define RELEASEVERSION "1.0-beta 6"
|
|
19
src/subbuild-version-information.sh
Executable file
19
src/subbuild-version-information.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# Arguments:
|
||||||
|
#
|
||||||
|
# svnversion executable path
|
||||||
|
#
|
||||||
|
|
||||||
|
SVNVERSION=`svnversion`
|
||||||
|
TAGVERSION=`awk 'BEGIN { FS="\""; } { print $2; }' ../gui/Gui/Version.py`
|
||||||
|
|
||||||
|
echo $SVNVERSION
|
||||||
|
echo $TAGVERSION
|
||||||
|
|
||||||
|
# Fix svnversion information
|
||||||
|
echo "#define SVNVERSION \"$SVNVERSION\"" >version.h
|
||||||
|
# Fix version tag
|
||||||
|
echo "#define TAGVERSION \"$TAGVERSION\"" >>version.h
|
||||||
|
|
||||||
|
|
@ -15,8 +15,6 @@
|
|||||||
#include "error.h"
|
#include "error.h"
|
||||||
#include "specialterm.h"
|
#include "specialterm.h"
|
||||||
|
|
||||||
#include "release.h"
|
|
||||||
|
|
||||||
// Program name
|
// Program name
|
||||||
const char *progname = "scyther";
|
const char *progname = "scyther";
|
||||||
|
|
||||||
@ -1245,7 +1243,7 @@ switcher (const int process, int index, int commandline)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf ("'%s' model checker for security protocols.\n", progname);
|
printf ("'%s' model checker for security protocols.\n", progname);
|
||||||
printf ("Version %s.\n", RELEASEVERSION);
|
printf ("Version %s.\n", TAGVERSION);
|
||||||
if (switches.expert)
|
if (switches.expert)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
|
Loading…
Reference in New Issue
Block a user