mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-11 16:40:36 +08:00
The in-memory files can be made persistent if nc_create is called with NC_DISKLESS|NC_WRITE flags set. Initial test case also included. - Modified ncio mechanism to support multiple ncio packages; this is so we can have posixio and memio operating at the same time. - cleanup up a bunch of lint issues (unused variables, etc).
47 lines
1.4 KiB
Plaintext
Executable File
47 lines
1.4 KiB
Plaintext
Executable File
THISDIR=../oc
|
|
OCDIR=/home/dmh/svn/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 ce.y ceparse.c celex.c ceparselex.h
|
|
rm -f octest.c config.h occompile.[ch]
|
|
rm -f ocdebug.h
|
|
sed -e 's|^[#]if 1|#if 0|g' \
|
|
< ${OCDIR}/ocdebug.h | tr -d '\r' >./ocdebug.h
|
|
# This should match the bison command in Makefile.am
|
|
rm -f dap.tab.c dap.tab.h
|
|
bison --debug -d -p dap dap.y
|
|
mv dap.tab.c daptab.c; mv dap.tab.h daptab.h
|
|
|
|
# # Temporary
|
|
# sed -e 's|dapdecode(parsestate->lexstate,|(|' \
|
|
# < ${OCDIR}/dap.y | tr -d '\r' >./dap.y
|
|
|
|
diffoc::
|
|
if ! test -e ${OCDIR} ; then echo "${OCDIR} not found"; exit ; fi
|
|
for f in ${OCDIR}/*.[chy] ; do \
|
|
x=`basename $$f | tr -d '
|
|
' ` ; \
|
|
if test "x$${x}" = "xdaptab.c" -o "x$${x}" = "xdaptab.h" ; then echo "ignore: $${x}"; continue; fi ;\
|
|
if test -e ${THISDIR}/$$x -a -e ${OCDIR}/$$x ; then \
|
|
diff --brief -wBb ${THISDIR}/$$x $$f ; \
|
|
else \
|
|
echo "Only in ${OCDIR}: $$x"; \
|
|
fi; \
|
|
done
|
|
for f in ${OCDIR}/*.[chy] ; do \
|
|
x=`basename $$f|tr -d '
|
|
' ` ; \
|
|
if test "x$${x}" = "xdaptab.c" -o "x$${x}" = "xdaptab.h" ; then echo "ignore: $${x}"; continue; fi ;\
|
|
if test -e ${THISDIR}/$$x -a -e ${OCDIR}/$$x ; then \
|
|
if ! diff --brief -wBb ${THISDIR}/$$x $$f > /dev/null ; then \
|
|
echo diff -wBb ${THISDIR}/$$x $$f ;\
|
|
diff -w ${THISDIR}/$$x $$f ; \
|
|
fi; \
|
|
fi; \
|
|
done
|