mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
41 lines
1.0 KiB
Plaintext
Executable File
41 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 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 ${OCDIR}/*.[chy] ; do \
|
|
x=`basename $$f | tr -d '
|
|
' ` ; \
|
|
if test "x$$x" = "xdaptab.c"; then continue ; fi ; \
|
|
if test -e ${THISDIR}/$$x ; then \
|
|
diff -q ${THISDIR}/$$x $$f ; \
|
|
else \
|
|
echo "new file: $$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 -q ${THISDIR}/$$x $$f > /dev/null ; then \
|
|
echo diff ${THISDIR}/$$x $$f ;\
|
|
diff -bBw ${THISDIR}/$$x $$f ; \
|
|
fi; \
|
|
fi; \
|
|
done
|
|
|