[libxml2] OS400: do not try to copy unexisting doc files
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] OS400: do not try to copy unexisting doc files
- Date: Fri, 10 Oct 2014 08:25:09 +0000 (UTC)
commit 5018082b8c87fb0c1cac86a5e4f77333abf435a7
Author: Patrick Monnerat <pm datasphere ch>
Date: Thu Oct 9 17:39:01 2014 +0200
OS400: do not try to copy unexisting doc files
os400/make-src.sh | 2 +-
os400/make.sh | 17 ++++++++++-------
2 files changed, 11 insertions(+), 8 deletions(-)
---
diff --git a/os400/make-src.sh b/os400/make-src.sh
index 49b6a95..f06cfaf 100644
--- a/os400/make-src.sh
+++ b/os400/make-src.sh
@@ -17,7 +17,7 @@ cd "${TOPDIR}"
echo '#pragma comment(user, "libxml2 version '"${LIBXML_VERSION}"'")' > os400.c
echo '#pragma comment(user, __DATE__)' >> os400.c
echo '#pragma comment(user, __TIME__)' >> os400.c
-echo '#pragma comment(copyright, "Copyright (C) 1998-2013 Daniel Veillard. OS/400 version by P. Monnerat.")'
os400.c
+echo '#pragma comment(copyright, "Copyright (C) 1998-2014 Daniel Veillard. OS/400 version by P. Monnerat.")'
os400.c
make_module OS400 os400.c
LINK= # No need to rebuild service program yet.
MODULES=
diff --git a/os400/make.sh b/os400/make.sh
index 836c339..864e72b 100644
--- a/os400/make.sh
+++ b/os400/make.sh
@@ -37,13 +37,16 @@ for TEXT in "${TOPDIR}/AUTHORS" "${TOPDIR}/ChangeLog" \
"${TOPDIR}/Copyright" "${TOPDIR}/HACKING" "${TOPDIR}/README" \
"${TOPDIR}/MAINTAINERS" "${TOPDIR}/NEWS" "${TOPDIR}/TODO" \
"${TOPDIR}/TODO_SCHEMAS" "${TOPDIR}/os400/README400"
-do MEMBER="`basename \"${TEXT}\" .OS400`"
- MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${MEMBER}\"`.MBR"
-
- if action_needed "${MEMBER}" "${TEXT}"
- then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}') TOCCSID(${TGTCCSID})"
- CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
- system "${CMD}"
+do if [ -f "${TEXT}" ]
+ then MEMBER="`basename \"${TEXT}\" .OS400`"
+ MEMBER="${LIBIFSNAME}/DOCS.FILE/`db2_name \"${MEMBER}\"`.MBR"
+
+ if action_needed "${MEMBER}" "${TEXT}"
+ then CMD="CPY OBJ('${TEXT}') TOOBJ('${MEMBER}')"
+ CMD="${CMD} TOCCSID(${TGTCCSID})"
+ CMD="${CMD} DTAFMT(*TEXT) REPLACE(*YES)"
+ system "${CMD}"
+ fi
fi
done
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]