Skip to content

Commit

Permalink
Add a scripts folder
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveDavenport committed Apr 22, 2009
1 parent 4aa1602 commit 9ab4a10
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions scripts/vallgrind_gmpc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20 src/gmpc
5 changes: 2 additions & 3 deletions shave-libtool.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ SED=@SED@
if test -z "$SED" ; then
SED=sed
fi
Xsed="$SED -e s/^X//"

lt_unmangle ()
{
last_result=`echo -n X$1 | $Xsed -e 's#.libs/##' -e 's#[^0-9a-zA-Z_]\+_la##'`
last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'`
}

# the real libtool to use
Expand All @@ -27,7 +26,7 @@ while test "$#" -gt 0; do

case $opt in
--mode=*)
mode=`echo "X$opt" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'`
mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'`
preserved_args="$preserved_args $opt"
;;
-o)
Expand Down
25 changes: 17 additions & 8 deletions shave.in
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ SED=@SED@
if test -z "$SED" ; then
SED=sed
fi
Xsed="$SED -e s/^X//"

lt_unmangle ()
{
last_result=`echo -n X$1 | $Xsed -e 's#.libs/##' -e 's#[^0-9a-zA-Z_]\+_la##'`
last_result=`echo $1 | $SED -e 's#.libs/##' -e 's#[0-9a-zA-Z_\-\.]*_la-##'`
}

# the tool to wrap (cc, cxx, ar, ranlib, ..)
Expand All @@ -28,7 +27,7 @@ while test "$#" -gt 0; do

case $opt in
--shave-mode=*)
mode=`echo "X$opt" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'`
mode=`echo $opt | $SED -e 's/[-_a-zA-Z0-9]*=//'`
;;
-o)
lt_output="$1"
Expand All @@ -45,13 +44,23 @@ case "$mode,$tool" in
link,*)
pass_through=1
;;
compile,cxx)
*,cxx)
Q=" CXX "
;;
compile,cc|*,*)
# no "libtool" mode has been given, we are called by the Makefile:
# -> assume compilation
mode=compile
*,cc)
Q=" CC "
;;
*,fc)
Q=" FC "
;;
*,f77)
Q=" F77 "
;;
*,objc)
Q=" OBJC "
;;
*,*)
# should not happen
Q=" CC "
;;
esac
Expand Down

0 comments on commit 9ab4a10

Please sign in to comment.