-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 2 new tools, update main lyx file to release 0.17
Modified Files: Linux+IPv6-HOWTO.lyx Added Files: copytohowtodir.sh runsgmlfix.sh
- Loading branch information
pbldp
committed
Jan 19, 2002
1 parent
f918173
commit 54c0903
Showing
3 changed files
with
252 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/sh | ||
# | ||
# $Id$ | ||
# | ||
# Small helper script to copy SGML file to howto dir | ||
# | ||
# (P) & (C) by Peter Bieringer <pb at bieringer dot de> | ||
# | ||
# 20020119/PB: initial | ||
|
||
|
||
FILE_SGML="Linux+IPv6-HOWTO.sgml" | ||
|
||
DIRSRC="./" | ||
DIRDST="../../howto/docbook/" | ||
|
||
if [ ! -f "${DIRSRC}${FILE_SGML}" ]; then | ||
echo "ERR : Missing SGML file '${DIRSRC}${FILE_SGML}'!" | ||
exit 1 | ||
fi | ||
|
||
if [ -f "${DIRDST}${FILE_SGML}" ]; then | ||
if [ "${DIRDST}${FILE_SGML}" -nt "${DIRSRC}${FILE_SGML}" ]; then | ||
echo "ERR : SGML file at destination is newer than source!" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
if [ -f "${DIRDST}${FILE_SGML}" ]; then | ||
echo "INF : Remove old SGML file '${DIRDST}${FILE_SGML}'" | ||
rm "${DIRDST}${FILE_SGML}" | ||
fi | ||
|
||
echo "INF : Copy new SGML file" | ||
cp "${DIRSRC}${FILE_SGML}" "${DIRDST}${FILE_SGML}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/sh | ||
# | ||
# $Id$ | ||
# | ||
# Small helper script to fix broken SGML code | ||
# | ||
# (P) & (C) by Peter Bieringer <pb at bieringer dot de> | ||
# | ||
# 20020119/PB: initial | ||
|
||
|
||
FILE_SGML="Linux+IPv6-HOWTO.sgml" | ||
FILE_LYX="Linux+IPv6-HOWTO.lyx" | ||
FILE_TMP="tmp.sgml" | ||
|
||
PROG_FIX_TABLETAG="sgmllyxtabletagfix.pl" | ||
|
||
if [ "$FILE_LYX" -nt "$FILE_SGML" ]; then | ||
echo "ERR : LyX file '$FILE_LYX' is newer than SGML file '$FILE_SGML' - forgot to export?" | ||
exit 1 | ||
fi | ||
|
||
if [ -f "$FILE_TMP" ]; then | ||
echo "INF : Temporary file exists, remove it!" | ||
rm "$FILE_TMP" | ||
fi | ||
|
||
if [ -f "$FILE_TMP" ]; then | ||
echo "ERR : Ooops, temporary file still exists!" | ||
exit 1 | ||
fi | ||
|
||
echo "INF : Fix SGML now" | ||
cat "$FILE_SGML" | ./$PROG_FIX_TABLETAG >$FILE_TMP | ||
|
||
echo "INF : Remove old SGML file '$FILE_SGML'" | ||
rm "$FILE_SGML" | ||
|
||
echo "INF : Rename temporary file to '$FILE_SGML'" | ||
mv "$FILE_TMP" "$FILE_SGML" | ||
|
||
|