summaryrefslogtreecommitdiff
path: root/source4/script
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-04-15 09:54:41 +0200
committerAndrew Tridgell <tridge@samba.org>2008-04-15 09:54:41 +0200
commitb967afca648eea481e586f367f99464418cf8468 (patch)
tree3fbe9cc92a21013cbd1eb2b6fa1b73ccddfbb151 /source4/script
parent9cd04363f56ba5ee4f8b1ffaf662fe81cc995e99 (diff)
parentafaba23131dc079be3cd92e87495ec8b2ebdc4ae (diff)
downloadsamba-b967afca648eea481e586f367f99464418cf8468.tar.gz
samba-b967afca648eea481e586f367f99464418cf8468.tar.bz2
samba-b967afca648eea481e586f367f99464418cf8468.zip
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit e891157b4ec7b2f845fb20c4106d80bf169f2072)
Diffstat (limited to 'source4/script')
-rwxr-xr-xsource4/script/lex_compile.sh51
-rwxr-xr-xsource4/script/yacc_compile.sh43
2 files changed, 0 insertions, 94 deletions
diff --git a/source4/script/lex_compile.sh b/source4/script/lex_compile.sh
deleted file mode 100755
index 9bba7257b1..0000000000
--- a/source4/script/lex_compile.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh
-
-LEX="$1"
-SRC="$2"
-DEST="$3"
-shift 3
-ARGS="$*"
-
-dir=`dirname $SRC`
-file=`basename $SRC`
-base=`basename $SRC .l`
-if [ -z "$LEX" ]; then
- # if $DEST is more recent than $SRC, we can just touch
- # otherwise we touch but print out warnings
- if [ -r $DEST ]; then
- if [ x`find $SRC -newer $DEST -print` = x$SRC ]; then
- echo "warning: lex not found - cannot generate $SRC => $DEST" >&2
- echo "warning: lex not found - only updating the timestamp of $DEST" >&2
- fi
- touch $DEST;
- exit;
- fi
- echo "error: lex not found - cannot generate $SRC => $DEST" >&2
- exit 1;
-fi
-# if $DEST is more recent than $SRC, we can just touch
-if [ -r $DEST ]; then
- if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
- touch $DEST;
- exit;
- fi
-fi
-TOP=`pwd`
-if cd $dir && $LEX $ARGS $file; then
- if [ -r $base.yy.c ];then
- # we must guarantee that config.h comes first
- echo "#include \"config.h\"" > $base.c
- sed -e "s|$base\.yy\.c|$DEST|" $base.yy.c >> $base.c
- rm -f $base.yy.c
- elif [ -r $base.c ];then
- # we must guarantee that config.h comes first
- mv $base.c $base.c.tmp
- echo "#include \"config.h\"" > $base.c
- sed -e "s|$base\.yy\.c|$DEST|" $base.c.tmp >> $base.c
- rm -f $base.c.tmp
- elif [ ! -r base.c ]; then
- echo "$base.c nor $base.yy.c generated."
- exit 1
- fi
-fi
-cd $TOP
diff --git a/source4/script/yacc_compile.sh b/source4/script/yacc_compile.sh
deleted file mode 100755
index a56a51da0a..0000000000
--- a/source4/script/yacc_compile.sh
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/sh
-
-YACC="$1"
-SRC="$2"
-DEST="$3"
-
-dir=`dirname $SRC`
-file=`basename $SRC`
-base=`basename $SRC .y`
-if [ -z "$YACC" ]; then
- # if $DEST is more recent than $SRC, we can just touch
- # otherwise we touch but print out warnings
- if [ -r $DEST ]; then
- if [ x`find $SRC -newer $DEST -print` = x$SRC ]; then
- echo "warning: yacc not found - cannot generate $SRC => $DEST" >&2
- echo "warning: yacc not found - only updating the timestamp of $DEST" >&2
- fi
- touch $DEST;
- exit;
- fi
- echo "error: yacc not found - cannot generate $SRC => $DEST" >&2
- exit 1;
-fi
-# if $DEST is more recent than $SRC, we can just touch
-if [ -r $DEST ]; then
- if [ x`find $SRC -newer $DEST -print` != x$SRC ]; then
- touch $DEST;
- exit;
- fi
-fi
-TOP=`pwd`
-if cd $dir && $YACC -d $file; then
- if [ -r y.tab.h -a -r y.tab.c ];then
- #echo "info: move files"
- sed -e "/^#/!b" -e "s|y\.tab\.h|$SRC|" -e "s|\"$base.y|\"$SRC|" y.tab.h > $base.h
- sed -e "s|y\.tab\.c|$SRC|" -e "s|\"$base.y|\"$SRC|" y.tab.c > $base.c
- rm -f y.tab.c y.tab.h
- elif [ ! -r $base.h -a ! -r $base.c]; then
- echo "$base.h nor $base.c generated."
- exit 1
- fi
-fi
-cd $TOP