1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Makefile.in: Added target for makeyodldocs - not used by default.

rpc_client/cli_reg.c: The perils of cut-n-paste coding include using variables before
                      they are initialised :-).
script/makeyodldocs.sh: Remove the intermediate files.
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 8d4e8498df
commit 88031bca5c
3 changed files with 16 additions and 5 deletions

View File

@ -476,6 +476,14 @@ distclean: realclean
-rm -f config.status config.cache -rm -f config.status config.cache
-rm -rf .deps -rm -rf .deps
#
# This target is for documenation updators. It regenerates
# the man pages and HTML docs from the YODL source files.
# In order for this target to work YODL must be installed
# and working on your system. JRA.
yodldocs:
@$(SHELL) $(srcdir)/script/makeyodldocs.sh $(srcdir)
# this target is really just for my use. It only works on a limited # this target is really just for my use. It only works on a limited
# range of machines and is used to produce a list of potentially # range of machines and is used to produce a list of potentially
# dead (ie. unused) functions in the code. (tridge) # dead (ie. unused) functions in the code. (tridge)

View File

@ -42,7 +42,7 @@ BOOL do_reg_connect(struct cli_state *cli, char *full_keyname,
fstring key_name; fstring key_name;
char *srch; char *srch;
BOOL res1; BOOL res1;
BOOL res; BOOL res = False;
BOOL hklm = False; BOOL hklm = False;
BOOL hku = False; BOOL hku = False;
@ -70,16 +70,16 @@ BOOL do_reg_connect(struct cli_state *cli, char *full_keyname,
if (hklm) if (hklm)
{ {
res = res ? do_reg_open_hklm(cli, res = do_reg_open_hklm(cli,
0x84E0, 0x02000000, 0x84E0, 0x02000000,
reg_hnd) : False; reg_hnd);
} }
if (hku) if (hku)
{ {
res = res ? do_reg_open_hku(cli, res = do_reg_open_hku(cli,
0x84E0, 0x02000000, 0x84E0, 0x02000000,
reg_hnd) : False; reg_hnd);
} }
/* open an entry */ /* open an entry */

View File

@ -44,6 +44,7 @@ do
exit 1 exit 1
fi fi
cp $bn.man ../manpages/$bn || echo "Cannot create $YODLDIR/../manpages/$bn" cp $bn.man ../manpages/$bn || echo "Cannot create $YODLDIR/../manpages/$bn"
rm -f $bn.man
echo "Creating html versions of man pages..." echo "Creating html versions of man pages..."
echo $d echo $d
@ -54,6 +55,7 @@ do
exit 1 exit 1
fi fi
cp $bn.html ../htmldocs || echo "Cannot create $YODLDIR/../htmldocs/$bn.html" cp $bn.html ../htmldocs || echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
rm -f $bn.html
;; ;;
*) *)
# #
@ -67,6 +69,7 @@ do
exit 1 exit 1
fi fi
cp $bn.html ../htmldocs || echo "Cannot create $YODLDIR/../htmldocs/$bn.html" cp $bn.html ../htmldocs || echo "Cannot create $YODLDIR/../htmldocs/$bn.html"
rm -f $bn.html
;; ;;
esac esac
done done