Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
25c7a656
Commit
25c7a656
authored
May 15, 2011
by
Davis King
Browse files
Fixed makerel to work with Mercurial.
parent
a75402cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
.hgignore
.hgignore
+2
-0
docs/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