File tree 14 files changed +23
-45
lines changed
14 files changed +23
-45
lines changed Original file line number Diff line number Diff line change @@ -633,8 +633,6 @@ BUILD_CFLAGS
633
633
MKINSTALLDIRS
634
634
INCLUDES
635
635
DO_TEST_SUITE
636
- ET_DIR
637
- SS_DIR
638
636
LDFLAGS_STATIC
639
637
root_sysconfdir
640
638
root_libdir
@@ -13805,10 +13803,6 @@ $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
13805
13803
13806
13804
;;
13807
13805
esac
13808
- SS_DIR=` cd ${srcdir} /lib/ss; pwd`
13809
- ET_DIR=` cd ${srcdir} /lib/et; pwd`
13810
-
13811
-
13812
13806
if test " $cross_compiling " = yes ; then
13813
13807
DO_TEST_SUITE=
13814
13808
else
Original file line number Diff line number Diff line change @@ -1400,13 +1400,6 @@ darwin*)
1400
1400
;;
1401
1401
esac
1402
1402
dnl
1403
- dnl Make the ss and et directories work correctly.
1404
- dnl
1405
- SS_DIR=`cd ${srcdir}/lib/ss; pwd`
1406
- ET_DIR=`cd ${srcdir}/lib/et; pwd`
1407
- AC_SUBST ( SS_DIR )
1408
- AC_SUBST ( ET_DIR )
1409
- dnl
1410
1403
dnl Only try to run the test suite if we're not cross compiling.
1411
1404
dnl
1412
1405
if test "$cross_compiling" = yes ; then
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ INSTALL = @INSTALL@
14
14
PROGS = debugfs
15
15
MANPAGES = debugfs.8
16
16
17
- MK_CMDS = _SS_DIR_OVERRIDE=../lib/ss ../lib/ss/mk_cmds
17
+ MK_CMDS = _SS_DIR_OVERRIDE=$( srcdir ) / ../lib/ss ../lib/ss/mk_cmds
18
18
19
19
DEBUG_OBJS = debug_cmds.o debugfs.o util.o ncheck.o icheck.o ls.o \
20
20
lsdel.o dump.o set_fields.o logdump.o htree.o unused.o e2freefrag.o \
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ PROFILED_DEPLIBS= $(DEPPROFILED_LIBSUPPORT) $(PROFILED_LIBEXT2FS) \
34
34
$(DEPPROFILED_LIBCOM_ERR ) $(DEPPROFILED_LIBBLKID ) \
35
35
$(DEPPROFILED_LIBUUID ) $(DEPPROFILED_LIBE2P )
36
36
37
- COMPILE_ET =$( top_builddir ) / lib/et/compile_et --build-tree
37
+ COMPILE_ET = _ET_DIR_OVERRIDE= $( srcdir ) /../ lib/et/et ../lib/et/compile_et
38
38
39
39
.c.o :
40
40
$(E ) " CC $<"
Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ uninstall::
140
140
check :: compile_et
141
141
for i in $( srcdir) /test_cases/* .et ; do \
142
142
t=` basename $$ i | sed -e ' s/.et//' ` ; \
143
- ./compile_et --build-tree $$ i ; \
143
+ _ET_DIR_OVERRIDE= $( srcdir ) ./compile_et $$ i ; \
144
144
diff -c $(srcdir ) /test_cases/$$ t.c $$ t.c > $$ t.failed; \
145
145
if [ $$ ? -ne 0 ]; then echo Test case $$ t failed; exit 1 ; fi ; \
146
146
diff -c $(srcdir ) /test_cases/$$ t.h $$ t.h >> $$ t.failed; \
Original file line number Diff line number Diff line change 4
4
5
5
datarootdir=@datarootdir@
6
6
AWK=@AWK@
7
- DIR=" ${DIR-@ datadir@/ et} "
8
- ET_DIR=" ${ET_DIR-@ ET_DIR@ } "
7
+ DIR=@datadir@/et
9
8
10
9
if test " $1 " = " --build-tree" ; then
11
10
shift ;
29
28
fi
30
29
done
31
30
31
+ if test -n " $_ET_DIR_OVERRIDE " ; then
32
+ DIR=" $_ET_DIR_OVERRIDE " ;
33
+ fi
34
+
32
35
if test ! -f " $DIR /et_h.awk" || test ! -f " $DIR /et_c.awk" ; then
33
- DIR=" $ET_DIR "
34
- # echo "Falling back to $DIR..."
35
- if test ! -f " $DIR /et_h.awk" || test ! -f " $DIR /et_c.awk" ; then
36
- echo " compile_et: Couldn't find compile_et's template files."
37
- exit 1
38
- fi
36
+ echo " compile_et: Couldn't find compile_et's template files."
37
+ exit 1
39
38
fi
40
39
41
40
ROOT=` echo $1 | sed -e s/.et$//`
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ DEBUGFS_CFLAGS = -I$(srcdir)/../../e2fsck $(ALL_CFLAGS) -DDEBUGFS
13
13
14
14
@DEBUGFS_CMT@DEBUGFS_LIB_OBJS = bb_compat.o inode_io.o write_bb_file.o
15
15
16
- MK_CMDS = _SS_DIR_OVERRIDE=../ss ../ss/mk_cmds
16
+ MK_CMDS = _SS_DIR_OVERRIDE=$(srcdir ) /../ss ../ss/mk_cmds
17
+ COMPILE_ET = _ET_DIR_OVERRIDE=$(srcdir ) /../et ../et/compile_et
17
18
18
19
@RESIZER_CMT@RESIZE_LIB_OBJS = dupfs.o
19
20
@TEST_IO_CMT@TEST_IO_LIB_OBJS = test_io.o
@@ -254,8 +255,6 @@ all:: ext2fs.pc
254
255
@ELF_CMT@ $(Q) $(CC) $(ALL_CFLAGS_SHLIB) -fPIC -shared -o elfshared/$*.o -c $<
255
256
@BSDLIB_CMT@ $(Q) $(CC) $(ALL_CFLAGS_SHLIB) $(BSDLIB_PIC_FLAG) -o pic/$*.o -c $<
256
257
257
- COMPILE_ET =../et/compile_et --build-tree
258
-
259
258
DISTFILES = Makefile *.c *.h image
260
259
261
260
ext2_err.et : $(DEP_SUBSTITUTE ) $(srcdir ) /ext2_err.et.in
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ BSDLIB_MYDIR = ss
28
28
BSDLIB_INSTALL_DIR = $(root_libdir )
29
29
30
30
TAGS =etags
31
- COMPILE_ET =../et/compile_et --build-tree
32
- MK_CMDS=_SS_DIR_OVERRIDE =. ./mk_cmds
31
+ MK_CMDS = _SS_DIR_OVERRIDE= $( srcdir ) ./mk_cmds
32
+ COMPILE_ET = _ET_DIR_OVERRIDE= $( srcdir ) /../et ../et/compile_et
33
33
34
34
.c.o :
35
35
$(E ) " CC $<"
Original file line number Diff line number Diff line change 3
3
#
4
4
5
5
datarootdir=@datarootdir@
6
- DIR=" ${DIR-@ datadir@/ ss} "
7
- SS_DIR=" @SS_DIR@"
6
+ DIR=@datadir@/ss
8
7
AWK=@AWK@
9
8
SED=@SED@
10
9
@@ -30,12 +29,8 @@ if test -n "$_SS_DIR_OVERRIDE" ; then
30
29
fi
31
30
32
31
if test ! -f $DIR /ct_c.sed || test ! -f $DIR /ct_c.awk ; then
33
- DIR=" $SS_DIR "
34
- # echo "Falling back to $DIR..."
35
- if test ! -f " $DIR /ct_c.sed" || test ! -f " $DIR /ct_c.awk" ; then
36
- echo " mk_cmds: Couldn't find mk_cmds's template files."
37
- exit 1
38
- fi
32
+ echo " mk_cmds: Couldn't find mk_cmds's template files."
33
+ exit 1
39
34
fi
40
35
41
36
FILE=" $1 "
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ LIBDIR= support
41
41
@MAKEFILE_LIBRARY@
42
42
@MAKEFILE_PROFILE@
43
43
44
- COMPILE_ET =$( top_builddir ) /lib /et/ compile_et --build-tree
44
+ COMPILE_ET = _ET_DIR_OVERRIDE= $( srcdir ) /.. /et ../et/ compile_et
45
45
46
46
.c.o :
47
47
$(E ) " CC $<"
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ STATIC_DEPLIBS= $(DEPLIBSUPPORT) $(STATIC_LIBEXT2FS) $(DEPSTATIC_LIBCOM_ERR)
115
115
LIBS_E2P = $(LIBE2P ) $(LIBCOM_ERR )
116
116
DEPLIBS_E2P = $(LIBE2P ) $(DEPLIBCOM_ERR )
117
117
118
- COMPILE_ET =$( top_builddir ) / lib/et/compile_et --build-tree
118
+ COMPILE_ET = _ET_DIR_OVERRIDE= $( srcdir ) /../ lib/et/et ../lib/et/compile_et
119
119
120
120
# This nastyness is needed because of jfs_user.h hackery; when we finally
121
121
# clean up this mess, we should be able to drop it
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ INSTALL = @INSTALL@
11
11
12
12
@MCONFIG@
13
13
14
- MK_CMDS = _SS_DIR_OVERRIDE=../../lib/ss ../../lib/ss/mk_cmds
14
+ MK_CMDS = _SS_DIR_OVERRIDE=$( srcdir ) / ../../lib/ss ../../lib/ss/mk_cmds
15
15
16
16
PROGS = test_icount crcsum
17
17
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ ANDROID_GENERATED_FILES="lib/ext2fs/ext2_err.c lib/ext2fs/ext2_err.h \
14
14
SS_DIR=$( pwd) /lib/ss
15
15
MK_CMDS=/tmp/mk_cmds$$ .sh
16
16
17
- sed -e " s;@SS_DIR@; $SS_DIR ; " < $SS_DIR /mk_cmds.sh.in \
18
- | sed -e " s/@AWK@/awk/ " | sed -e " s/@ SED@/sed/" > $MK_CMDS
17
+ sed -e " s/@AWK@/awk/ " < $SS_DIR /mk_cmds.sh.in \
18
+ | sed -e " s/@SED@/sed/" > $MK_CMDS
19
19
20
20
sed -e " s/@E2FSPROGS_VERSION@/$( git describe) /" < lib/ext2fs/ext2_err.et.in > lib/ext2fs/ext2_err.et
21
21
29
29
for i in lib/ss/std_rqs debugfs/debug_cmds debugfs/ro_debug_cmds \
30
30
debugfs/extent_cmds
31
31
do
32
- /bin/sh $MK_CMDS $i .ct
32
+ _SS_DIR_OVERRIDE=lib/ss /bin/sh $MK_CMDS $i .ct
33
33
mv -f $( basename $i ) .c $i .c
34
34
done
35
35
Original file line number Diff line number Diff line change 1
1
AWK @AWK@
2
2
SED @SED@
3
- ET_DIR @ET_DIR@
4
- SS_DIR @SS_DIR@
5
3
E2FSPROGS_MONTH @E2FSPROGS_MONTH@
6
4
E2FSPROGS_YEAR @E2FSPROGS_YEAR@
7
5
E2FSPROGS_VERSION @E2FSPROGS_VERSION@
You can’t perform that action at this time.
0 commit comments