OSSP CVS Repository

ossp - Check-in [4467]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 4467
Date: 2004-Mar-26 18:14:18 (local)
2004-Mar-26 17:14:18 (UTC)
User:thl
Branch:
Comment: automate large parts of lib_sa import
Tickets:
Inspections:
Files:
ossp-pkg/l2/devtool.conf      1.14 -> 1.15     13 inserted, 0 deleted

ossp-pkg/l2/devtool.conf 1.14 -> 1.15

--- devtool.conf 2004/03/19 14:55:47     1.14
+++ devtool.conf 2004/03/26 17:14:18     1.15
@@ -28,6 +28,19 @@
 ##  devtool.conf -- Development Tool Configuration
 ##
 
+%import
+    #../lib_sa has to be prepared manually
+    for i in sa.ac sa.c sa.h; do
+        cp ../lib_sa/$i l2_ut_$i
+    done
+    awk <l2_ut_sa.h '
+            BEGIN { p=1 }
+            /^#ifdef HAVE_CONFIG_H/ { print "#define SA_PREFIX l2_util_\n#include \"l2_config.h\"\n"; p=0 }
+            // { if (p==1) print $0 }
+            /^#endif/ { p=1 }
+            ' >l2_ut_sa.h.n && mv l2_ut_sa.h.n l2_ut_sa.h
+    shtool subst -e 's;#include "sa.h";#include "l2_ut_sa.h";' l2_ut_sa.c
+
 %autogen
     @autogen shtool   1.6.2 "1.6.*" echo fixperm install mkdir tarball version
     @autogen libtool  1.5.2 "1.5*"

CVSTrac 2.0.1