mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
38 lines
1.0 KiB
Plaintext
Executable File
38 lines
1.0 KiB
Plaintext
Executable File
THISDIR=../oc
|
|
OCDIR=/home/dmh/nc/oc
|
|
|
|
all::
|
|
|
|
makeoc::
|
|
rm -f ${THISDIR}/*.[chy]
|
|
for f in ${OCDIR}/*.[chy]; do \
|
|
base=`basename $$f` ; \
|
|
cat $$f | tr -d '
|
|
' >${THISDIR}/$$base; done
|
|
rm -f i.* apitest.* getoc.* imain.* main.*
|
|
rm -f config.h dap.tab.c dap.tab.h ce.y ceparselex.*
|
|
rm -f ocshadow.*
|
|
rm -f octest.c
|
|
rm -f ocinternal.h
|
|
sed -e 's|/[*]#undef OC_DISK_STORAGE[*]/|#undef OC_DISK_STORAGE|g' \
|
|
< ${OCDIR}/ocinternal.h | tr -d '\r' >./ocinternal.h
|
|
|
|
diffoc::
|
|
for f in ${THISDIR}/*.[chy] ; do \
|
|
x=`basename $$f | tr -d '
|
|
' ` ; \
|
|
if test "x$$x" = "xdaptab.c"; then continue ; fi ; \
|
|
if test -e ${THISDIR}/$$x ; then \
|
|
diff -qw ${THISDIR}/$$x $$f ; \
|
|
fi; \
|
|
done
|
|
for f in ${OCDIR}/*.[chy] ; do \
|
|
x=`basename $$f|tr -d '
|
|
' ` ; \
|
|
if test "x$$x" = "xdaptab.c"; then continue ; fi ; \
|
|
if test -e ${THISDIR}/$$x ; then \
|
|
if ! diff -qw ${THISDIR}/$$x $$f > /dev/null ; then \
|
|
echo diff -w ${THISDIR}/$$x $$f ;\
|
|
diff -w ${THISDIR}/$$x $$f ; \
|
|
fi; \
|
|
fi; \
|
|
done
|
|
|