]> git.uio.no Git - u/philim/db2osl_thesis.git/blobdiff - program_interface.tex
Major change
[u/philim/db2osl_thesis.git] / program_interface.tex
index 6dc6a8adc64fafaa0c55aa97b6cf38b7b715a51f..047c283e2a5e685283249b94240616e1cb442804 100644 (file)
@@ -41,8 +41,8 @@ seen as unnecessary complicating
 while not addressing any real difficulties.
 
 The command-line arguments \myprog{} currently supports are
-described in table \ref{if_tbl_arguments_desc};
-their default values are listed in table \ref{if_tbl_arguments_def}.
+described in Table~\ref{if_tbl_arguments_desc};
+their default values are listed in Table~\ref{if_tbl_arguments_def}.
 There is currently no switch to set the output format, since the only supported
 output format, besides \osl{}, is a low-level output format for debugging purposes.
 Because of this and since the change that has to be made in the source code to enable it
@@ -163,8 +163,8 @@ re-bootstrapping necessary:
 \codepar{db2osl -d mydb myserver.org | sha256sum >oldsum\\
        cp oldsum newsum\\
        while diff oldsum newsum; do\ \ \# while checksums are the same\\
-       \ind sleep 3600\ \ \# wait 1 hour\\
-       \ind db2osl -d mydb myserver.org | sha256sum >newsum\\
+       \ind{} sleep 3600\ \ \# wait 1 hour\\
+       \ind{} db2osl -d mydb myserver.org | sha256sum >newsum\\
        done\\
        rm oldsum newsum\\
        \# notify web admin via e-mail:\\
@@ -174,10 +174,10 @@ Another possible example is the integration of \myprog{} into a shell script
 that bootstraps all databases on a server:
 \codepar{regex=\textquotesingle(?!\$).*\textquotesingle\ \ \# accept all nonempty database names first\\
        while db2osl -d "\$regex" -o spec myserver.org; do\\
-       \ind dbname="\`{} sed -ne \textquotesingle/xmlns:ont/ \{ s|.*/||; s|\#"||p \}\textquotesingle\ spec \`{}"\\
-       \ind mv spec "\$dbname".osl\\
-       \ind \# don't use this database a second time:\\
-       \ind regex="\`{} printf \%s "\$regex" | sed -e "s,\textbackslash\textbackslash\textbackslash\textbackslash\$,\$|\$dbname\$," \`{}"\\
+       \ind{} dbname="\`{} sed -ne \textquotesingle/xmlns:ont/ \{ s|.*/||; s|\#"||p \}\textquotesingle\ spec \`{}"\\
+       \ind{} mv spec "\$dbname".osl\\
+       \ind{} \# don't use this database a second time:\\
+       \ind{} regex="\`{} printf \%s "\$regex" | sed -e "s,\textbackslash\textbackslash\textbackslash\textbackslash\$,\$|\$dbname\$," \`{}"\\
        done}
 
 Since the programming language used to implement \myprog{} is \name{Java},