Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
87221ace
Commit
87221ace
authored
May 15, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing the makesnapshot script since I won't be using it anymore.
parent
d437803e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
71 deletions
+0
-71
makesnapshot
docs/makesnapshot
+0
-71
No files found.
docs/makesnapshot
deleted
100755 → 0
View file @
d437803e
#!/bin/bash
report_failure ()
{
echo " **** failed to complete **** "
exit 1
}
./testenv || report_failure
./makedocs snapshot || exit 1
REVNUM_FILE=.logger_revnum
rm -rf release/* || report_failure
DLIB_REPOS=`svn info | grep URL | awk '{print $2}' | sed -e 's/\/docs$//' `
REVISION=`svn info | grep Revision | awk '{ print $2 }'`
svn log -v -r $REVISION:`cat $REVNUM_FILE` $DLIB_REPOS/dlib > release/change_log.txt || report_failure
cd release || report_failure
RELDIR=`echo dlib_snapshot-rev$REVISION`
mkdir $RELDIR
cd $RELDIR || report_failure
cp -r ../../docs/cache/dlib . || report_failure
cp -r ../../docs/cache/examples . || report_failure
echo This copy of dlib C++ library is a developmental snapshot. >> dlib/README.txt
echo "Date: `date`" >> dlib/README.txt
echo Subversion Revision Number: $REVISION >> dlib/README.txt
SOURCE_ZIP=`echo $RELDIR.zip`
SOURCE_TAR=`echo $RELDIR.tar`
tar -C ../../docs/chm -cf - docs/ documentation.html --exclude=".svn" | tar -xf -
cd .. || report_failure
tar -cf $SOURCE_TAR $RELDIR
# flip everything to MS-DOS line endings
find $RELDIR -name "*.cpp" -or -name "*.h" -or -name "*.txt" -or -name "*.html" | xargs flip -m
zip -r9 $SOURCE_ZIP $RELDIR > /dev/null
bzip2 $SOURCE_TAR
rm -rf $RELDIR
# make an index.html with links to the snapshot archives and chm file
#echo "
<html><body>
" > index.html
#echo "
<a
href=
'$SOURCE_ZIP'
>
$SOURCE_ZIP
</a><br/>
" >> index.html
#echo "
<a
href=
'$SOURCE_TAR.bz2'
>
$SOURCE_TAR.bz2
</a><br/>
" >> index.html
#echo "
<a
href=
'dlib_documentation_snapshot-rev$REVISION.chm'
>
dlib_documentation_snapshot-rev$REVISION.chm
</a><br/>
" >> index.html
#echo "
</body></html>
" >> index.html
# finally, generate the chm help file
wine ../docs/chm/htmlhelp/hhc.exe ../docs/chm/lib.hhp
mv ../docs/chm/help.chm dlib_documentation_snapshot-rev$REVISION.chm
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