moved various scripts in scripts/ dir
authorMartin Willi <martin@strongswan.org>
Wed, 18 Oct 2006 11:40:53 +0000 (11:40 -0000)
committerMartin Willi <martin@strongswan.org>
Wed, 18 Oct 2006 11:40:53 +0000 (11:40 -0000)
add configure script wrappers

ChangeLog.update [deleted file]
scripts/ChangeLog.update [new file with mode: 0755]
scripts/cfg-leak [new file with mode: 0755]
scripts/cfg-norm [new file with mode: 0755]
scripts/kdevstart [new file with mode: 0755]
scripts/linecount [new file with mode: 0755]

diff --git a/ChangeLog.update b/ChangeLog.update
deleted file mode 100755 (executable)
index c847f04..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-current=`svn info | grep Revision | sed -e "s:Revision\: ::"`
-last=`svn propget release-revision .`
-
-echo " strongswan-4.x.x / R:$current " > ChangeLog.tmp
-echo "===========================" >> ChangeLog.tmp
-echo "" >> ChangeLog.tmp
-
-svn log -r $current:$last | grep -v "| martin |" | grep -v "| andreas | " | grep -v ^$ | grep -v ^------ >> ChangeLog.tmp
-
-echo "" >> ChangeLog.tmp
-echo "" >> ChangeLog.tmp
-
-cat ChangeLog >> ChangeLog.tmp
-cat ChangeLog.tmp > ChangeLog
-
-rm ChangeLog.tmp
-
-echo "updated ChangeLog from R:$last to R:$current"
-
-svn propset release-revision "$current" . > /dev/null
-
diff --git a/scripts/ChangeLog.update b/scripts/ChangeLog.update
new file mode 100755 (executable)
index 0000000..c847f04
--- /dev/null
@@ -0,0 +1,22 @@
+#!/bin/bash
+current=`svn info | grep Revision | sed -e "s:Revision\: ::"`
+last=`svn propget release-revision .`
+
+echo " strongswan-4.x.x / R:$current " > ChangeLog.tmp
+echo "===========================" >> ChangeLog.tmp
+echo "" >> ChangeLog.tmp
+
+svn log -r $current:$last | grep -v "| martin |" | grep -v "| andreas | " | grep -v ^$ | grep -v ^------ >> ChangeLog.tmp
+
+echo "" >> ChangeLog.tmp
+echo "" >> ChangeLog.tmp
+
+cat ChangeLog >> ChangeLog.tmp
+cat ChangeLog.tmp > ChangeLog
+
+rm ChangeLog.tmp
+
+echo "updated ChangeLog from R:$last to R:$current"
+
+svn propset release-revision "$current" . > /dev/null
+
diff --git a/scripts/cfg-leak b/scripts/cfg-leak
new file mode 100755 (executable)
index 0000000..00623a1
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+CFLAGS="-Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -g -O2" ./configure --sysconfdir=/etc --with-random-device=/dev/urandom --enable-ldap --enable-http --enable-leak-detective
diff --git a/scripts/cfg-norm b/scripts/cfg-norm
new file mode 100755 (executable)
index 0000000..164f9a6
--- /dev/null
@@ -0,0 +1,2 @@
+#!/bin/bash
+CFLAGS="-Wall -Wno-format -Wno-pointer-sign -Wno-strict-aliasing -g -O2" ./configure --sysconfdir=/etc --with-random-device=/dev/urandom --enable-ldap --enable-http
diff --git a/scripts/kdevstart b/scripts/kdevstart
new file mode 100755 (executable)
index 0000000..d3cc809
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+#
+# The kdevelop file parser gets confused by the 
+# macrofied aes code, which leads to infinite
+# memory consumption. Use this dirty trick to
+# get kdevelop running...
+
+mv src/libstrongswan/crypto/crypters/aes_cbc_crypter.c libstrongswan_aes.c
+mv src/libcrypto/libaes/aes.c libcrypto_aes.c
+kdevelop3 &
+sleep 20
+mv libstrongswan_aes.c src/libstrongswan/crypto/crypters/aes_cbc_crypter.c 
+mv libcrypto_aes.c src/libcrypto/libaes/aes.c 
diff --git a/scripts/linecount b/scripts/linecount
new file mode 100755 (executable)
index 0000000..0e659cd
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+find $1 -name '*.[ch]' | grep -v .svn | xargs cat | grep -v ^[[:space:]]*$ | wc -l