summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-09-20 04:45:41 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-09-20 04:45:41 -0400
commit6b6383d52bc147134bb6b60b07e924b176c67e3a (patch)
tree9753a1ec40b1fbe2acfaa881af46e3c0f7da6401 /scripts
parent07bb297329b9e9754d09dcb6d70417272a626619 (diff)
downloadxmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.tar.gz
xmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.tar.bz2
xmlsec1-6b6383d52bc147134bb6b60b07e924b176c67e3a.zip
Imported Upstream version 1.2.19
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_release.sh4
-rwxr-xr-xscripts/test_leaks.pl60
2 files changed, 3 insertions, 61 deletions
diff --git a/scripts/build_release.sh b/scripts/build_release.sh
index dc4cdbfc..dc9edd0f 100755
--- a/scripts/build_release.sh
+++ b/scripts/build_release.sh
@@ -19,7 +19,9 @@ cd xmlsec
find . -name ".git" | xargs rm -r
./autogen.sh --prefix=/usr --sysconfdir=/etc
-make rpm-release
+make tar-release
+# can't build rpm on ubuntu
+# make rpm-release
tar_file=`ls xmlsec*.tar.gz`
echo "Moving sources tar file to $rpm_root/SOURCES/$tar_file"
diff --git a/scripts/test_leaks.pl b/scripts/test_leaks.pl
deleted file mode 100755
index 1fbc7b9e..00000000
--- a/scripts/test_leaks.pl
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/perl
-
-# Copyright (c) 2003 America Online, Inc. All rights reserved.
-
-# A crude, simple script that looks at "loss record" (stacks) in valgrind
-# output, and if the stack contains any of the funcs to ignore, then it
-# skips that stack else the stack is printed.
-
-# syntax
-# test_leaks.pl <file containing funcs to ignore> <valgrind output file>
-
-
-$ignore_file = shift @ARGV;
-$valgrind_output = shift @ARGV;
-
-# gather funcs to ignore
-open(IN, "$ignore_file") || die "Unable to open file $ignore_file";
-$i=0;
-while(<IN>) {
- chop;
- $ignore[$i++] = $_;
-}
-close IN;
-
-# now walk through the valgrind output
-open(IN, "$valgrind_output") || die "Unable to open file $valgrind_output";
-while(<IN>) {
- if (/==\d+==.*loss record.*\n/) {
- $line=$_;
- next;
- } else {
- if (/==\d+== \n/ && $line) {
- $i=0;
- $bad=0;
- while ($ignore[$i]) {
- if ($line =~ /$ignore[$i]/) {
- #printf "STACK TO BE IGNORED : \n%s\n", $line;
- $bad=1;
- break;
- }
- $i++;
- }
-
- # if none of the patterns matched...
- if ($bad==0) {
- printf "STACK TO EXAMINE: \n%s\n", $line;
- }
-
- undef $line;
- next;
- }
-
- if ($line) {
- $line=$line.$_;
- }
-
- }
-}
-close IN;
-