diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 15:49:25 +0000 |
commit | 464df1d5e5ab1322e2dd0a7796939fff1aeefa9a (patch) | |
tree | 6a403684e0978f0287d7f0ec0e5aab1fd31a59e1 /lib/ext2fs/tdb/build-tdb | |
parent | Initial commit. (diff) | |
download | e2fsprogs-upstream.tar.xz e2fsprogs-upstream.zip |
Adding upstream version 1.47.0.upstream/1.47.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rwxr-xr-x | lib/ext2fs/tdb/build-tdb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/ext2fs/tdb/build-tdb b/lib/ext2fs/tdb/build-tdb new file mode 100755 index 0000000..1cc18f7 --- /dev/null +++ b/lib/ext2fs/tdb/build-tdb @@ -0,0 +1,34 @@ +#!/bin/sh +# +# This file creates a stand-alone TDB based on a set of sources from +# Samba + +#BASE_DIR=/usr/projects/samba/samba-4.0.0tp4/source/lib/tdb +BASE_DIR=/usr/projects/samba/tdb + +rm -rf .pc + +FILES="error.c lock.c io.c transaction.c freelist.c \ + freelistcheck.c traverse.c dump.c tdb.c open.c" + +(cd $BASE_DIR/common; svn info ) > .svninfo +echo "/*" > tdb.c +grep ^URL .svninfo >> tdb.c +grep "^Last Changed Rev" .svninfo | sed -e 's/Last Changed //' >> tdb.c +grep "^Last Changed Date" .svninfo >> tdb.c +echo "*/" >> tdb.c + +cat $BASE_DIR/common/tdb_private.h >> tdb.c +for i in $FILES; do + if [ `tail -n 1 tdb.c | wc -c` -gt 1 ]; then + printf "\n" >> tdb.c + fi + echo "/* file: $i */" >> tdb.c + sed -e '1,/#include "tdb_private.h"/d' < $BASE_DIR/common/$i >> tdb.c +done + +cp $BASE_DIR/include/tdb.h . +cp $BASE_DIR/tools/tdbtool.c . + +quilt push -a + |