Skip to content
Snippets Groups Projects
Commit 0db0ea8b authored by Brian Carrier's avatar Brian Carrier
Browse files

Updated release script

parent 5858120c
No related branches found
No related tags found
No related merge requests found
...@@ -81,6 +81,8 @@ () ...@@ -81,6 +81,8 @@ ()
system ("git clone git\@github.com:sleuthkit/sleuthkit.git ${CLONEDIR}"); system ("git clone git\@github.com:sleuthkit/sleuthkit.git ${CLONEDIR}");
chdir "${CLONEDIR}" or die "Error changing into $CLONEDIR"; chdir "${CLONEDIR}" or die "Error changing into $CLONEDIR";
system ("git checkout ${BRANCH}");
} }
# Deletes the clone directory -- if it exists # Deletes the clone directory -- if it exists
...@@ -139,8 +141,8 @@ sub tag_dir { ...@@ -139,8 +141,8 @@ sub tag_dir {
# Commit the updated version info in the current source directory # Commit the updated version info in the current source directory
sub checkin_vers { sub checkin_vers {
print "Checking in version updates\n";
unless ($TESTING) { unless ($TESTING) {
print "Checking in version updates\n";
system ("git commit -a -m \"New version files for ${VER}\""); system ("git commit -a -m \"New version files for ${VER}\"");
system ("git push origin master"); system ("git push origin master");
} }
...@@ -390,6 +392,24 @@ sub make_tar { ...@@ -390,6 +392,24 @@ sub make_tar {
die "Missing $TARBALL after make dist" unless (-e $TARBALL); die "Missing $TARBALL after make dist" unless (-e $TARBALL);
} }
# Compiles the framework to verify it is all good
sub compile_framework() {
chdir ("framework") or die "error changing into framework";
print "Running bootstrap\n";
system ("./bootstrap");
die "Error running bootstrap in framework" unless (-e "./configure");
print "Running configure\n";
system ("./configure > /dev/null");
die "Error running framework configure in tar file" unless (-e "./Makefile");
print "Running make\n";
system ("make > /dev/null");
die "Error compiling framework" unless ((-e "tools/tsk_analyzeimg/tsk_analyzeimg") && (-e "runtime/modules/libtskEntropyModule.a"));
chdir "..";
}
# Verify that the tar ball contains all of the # Verify that the tar ball contains all of the
# expected files # expected files
# Starts and ends in the clone dir # Starts and ends in the clone dir
...@@ -445,20 +465,7 @@ sub verify_tar { ...@@ -445,20 +465,7 @@ sub verify_tar {
chdir "../.."; chdir "../..";
# Compile the framework # Compile the framework
chdir ("framework") or die "error changing into framework"; # compile_framework();
print "Running bootstrap\n";
system ("./bootstrap");
die "Error running bootstrap in framework" unless (-e "./configure");
print "Running configure\n";
system ("./configure > /dev/null");
die "Error running framework configure in tar file" unless (-e "./Makefile");
print "Running make\n";
system ("make > /dev/null");
die "Error compiling framework" unless ((-e "tools/tsk_analyzeimg/tsk_analyzeimg") && (-e "runtime/modules/libtskEntropyModule.a"));
chdir "..";
# We're done. Clean up # We're done. Clean up
chdir ".."; chdir "..";
...@@ -471,6 +478,8 @@ sub verify_tar { ...@@ -471,6 +478,8 @@ sub verify_tar {
die ("Stopping") if $a eq "n"; die ("Stopping") if $a eq "n";
} }
sub copy_tar() { sub copy_tar() {
copy ("${TARBALL}", "$RELDIR") or die "error moving sleuthkit tar ball to release folder"; copy ("${TARBALL}", "$RELDIR") or die "error moving sleuthkit tar ball to release folder";
print "File saved as ${TARBALL} (in release folder)\n"; print "File saved as ${TARBALL} (in release folder)\n";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment