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
25c7a656
Commit
25c7a656
authored
May 15, 2011
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed makerel to work with Mercurial.
parent
a75402cb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
.hgignore
.hgignore
+2
-0
makerel
docs/makerel
+7
-11
No files found.
.hgignore
View file @
25c7a656
...
@@ -2,8 +2,10 @@
...
@@ -2,8 +2,10 @@
\.swp$
\.swp$
\.o$
\.o$
\.obj$
\.obj$
^docs/release/
^docs/docs/web/
^docs/docs/web/
^docs/docs/chm/
^docs/docs/chm/
^docs/docs/cache/
^docs/docs/log.txt$
^docs/docs/log.txt$
^docs/docs/old_log.txt$
^docs/docs/old_log.txt$
docs/makerel
View file @
25c7a656
...
@@ -35,19 +35,15 @@ else
...
@@ -35,19 +35,15 @@ else
./makedocs
||
exit
1
./makedocs
||
exit
1
fi
;
fi
;
rm
-rf
release/
*
||
report_failure
rm
-rf
release
||
report_failure
mkdir
release
||
report_failure
RELEASE
=
${
MAJOR_NUM
}
.
${
MINOR_NUM
}
RELEASE
=
${
MAJOR_NUM
}
.
${
MINOR_NUM
}
DLIB_REPOS
=
`
svn info |
grep
URL |
awk
'{print $2}'
|
sed
-e
's/\/docs$//'
`
CHANGESET_ID
=
`
hg
id
-i
|
sed
-e
's/\+//'
`
REVISION
=
`
svn info |
grep
Revision |
awk
'{ print $2}'
`
echo
$CHANGESET_ID
>
$REVNUM_FILE
svn log
-v
-r
$REVISION
:
`
cat
$REVNUM_FILE
`
$DLIB_REPOS
/dlib
>
release/change_log.txt
||
report_failure
echo
$REVISION
|
awk
'{ print $1 + 1}'
>
$REVNUM_FILE
cd
release
||
report_failure
cd
release
||
report_failure
RELDIR
=
`
echo
dlib-
$RELEASE
`
RELDIR
=
`
echo
dlib-
$RELEASE
`
...
@@ -58,14 +54,14 @@ cp -r ../../docs/cache/examples . || report_failure
...
@@ -58,14 +54,14 @@ cp -r ../../docs/cache/examples . || report_failure
echo
Version:
$RELEASE
>>
dlib/README.txt
echo
Version:
$RELEASE
>>
dlib/README.txt
echo
"Date:
`
date
`
"
>>
dlib/README.txt
echo
"Date:
`
date
`
"
>>
dlib/README.txt
echo
Subversion Revision Number:
$REVISION
>>
dlib/README.txt
echo
Mercurial Revision ID:
$CHANGESET_ID
>>
dlib/README.txt
WEBPAGE
=
`
echo
dlib_webpage-
$RELEASE
.tar
`
WEBPAGE
=
`
echo
dlib_webpage-
$RELEASE
.tar
`
SOURCE_ZIP
=
`
echo
$RELDIR
.zip
`
SOURCE_ZIP
=
`
echo
$RELDIR
.zip
`
SOURCE_TAR
=
`
echo
$RELDIR
.tar
`
SOURCE_TAR
=
`
echo
$RELDIR
.tar
`
tar
-C
../../docs/chm
-cf
- docs/ documentation.html
--exclude
=
".svn"
|
tar
-xf
-
||
report_failure
tar
-C
../../docs/chm
-cf
- docs/ documentation.html |
tar
-xf
-
||
report_failure
cd
..
||
report_failure
cd
..
||
report_failure
tar
-cf
$SOURCE_TAR
$RELDIR
||
report_failure
tar
-cf
$SOURCE_TAR
$RELDIR
||
report_failure
...
@@ -73,7 +69,7 @@ tar -cf $SOURCE_TAR $RELDIR || report_failure
...
@@ -73,7 +69,7 @@ tar -cf $SOURCE_TAR $RELDIR || report_failure
find
$RELDIR
-name
"*.cpp"
-or
-name
"*.h"
-or
-name
"*.txt"
-or
-name
"*.html"
| xargs flip
-m
find
$RELDIR
-name
"*.cpp"
-or
-name
"*.h"
-or
-name
"*.txt"
-or
-name
"*.html"
| xargs flip
-m
zip
-r9
$SOURCE_ZIP
$RELDIR
>
/dev/null
||
report_failure
zip
-r9
$SOURCE_ZIP
$RELDIR
>
/dev/null
||
report_failure
tar
-C
../docs
-cf
$WEBPAGE
--exclude
=
".svn"
web
||
report_failure
tar
-C
../docs
-cf
$WEBPAGE
web
||
report_failure
bzip2
$SOURCE_TAR
||
report_failure
bzip2
$SOURCE_TAR
||
report_failure
bzip2
$WEBPAGE
||
report_failure
bzip2
$WEBPAGE
||
report_failure
...
...
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