Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
09352960
Commit
09352960
authored
Feb 25, 2012
by
Clément OUDOT
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update doc.pl to keep only the latest documentation (
#442
)
parent
587ef5b9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
build/lemonldap-ng/Makefile
build/lemonldap-ng/Makefile
+0
-7
build/lemonldap-ng/scripts/doc.pl
build/lemonldap-ng/scripts/doc.pl
+6
-0
No files found.
build/lemonldap-ng/Makefile
View file @
09352960
...
...
@@ -510,14 +510,7 @@ manager_cpan: manager_conf
@
mv
${SRCMANAGERDIR}
/Lemonldap
*
.gz .
documentation
:
@
rm
-f
doc/pages/documentation/latest
@
cd
doc/
&&
../scripts/doc.pl
@
rm
-rf
doc/pages/documentation/
{
latest,1.0
}
doc/pages/wiki doc/pages/playground
@
ln
-s
$$
(
perl
-e
'$$h{sprintf("%03d\.%03d\.%03d",split/\./,$$_)}=$$_ foreach(@ARGV); \
foreach(sort keys %h){$$last="$$h{$$_}\n"};print $$last;'
\
$$
(
find doc/pages/documentation/
-maxdepth
1
-mindepth
1
-type
d
!
\
-name
.svn
!
-name
latest
-printf
"%f
\n
"
)
\
)
doc/pages/documentation/latest
doxygen
:
clean
$(PERL)
-i
-pe
's/^(PROJECT_NUMBER\s*=\s*)\d.*$$/$
${1}
'
$(VERSION)
'/'
Doxyfile
...
...
build/lemonldap-ng/scripts/doc.pl
View file @
09352960
...
...
@@ -16,6 +16,7 @@ use Tie::File;
my
$offline_script_url
=
'
http://lemonldap-ng.org/lib/plugins/offline/create.php
';
my
$offline_zip_url
=
'
http://lemonldap-ng.org/lib/plugins/offline/offline.zip
';
my
$version
=
"
1.2
";
my
$rc
;
# Launch remote offline script
...
...
@@ -34,6 +35,11 @@ system("rm -f offline.zip");
system
("
cp -rf offline/* .
");
system
("
rm -rf offline
");
# Keep only the latest
system
("
rm -rf pages/documentation/latest pages/wiki pages/playground
");
system
("
mv pages/documentation/
$version
pages/documentation/latest
");
system
("
rm -rf pages/documentation/1*
");
# Correct some bad media links
system
('
find . -name \*.html -exec sed -i "s#/_media#../media#g" {} \;
');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment