Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
fontconfig
fontconfig
Commits
51f15364
Commit
51f15364
authored
Jan 10, 2008
by
Keith Packard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new-version.sh was mis-editing files
parent
554dc2e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
new-version.sh
new-version.sh
+8
-11
No files found.
new-version.sh
View file @
51f15364
#!/bin/sh
test
=
echo
if
git-status
>
/dev/null
;
then
:
else
if
git-status
-a
>
/dev/null
;
then
echo
'Uncommited changes in repository'
1>&2
exit
1
fi
...
...
@@ -24,12 +21,12 @@ eval `echo $version |
# Update the version numbers
$test
sed
-i
configure.in
"/^AM_INIT_AUTOMAKE/s/2
\.
[0-9.]*/
$version
/"
sed
-i
configure.in
-e
"/^AM_INIT_AUTOMAKE/s/2
\.
[0-9.]*/
$version
/"
$test
sed
-i
fontconfig/fontconfig.h
\
-e
"/^#define FC_MAJOR/s/[0-9]*/
$major
/"
\
-e
"/^#define FC_MINOR/s/[0-9]*/
$minor
/"
\
-e
"/^#define FC_REVISION/s/[0-9]*/
$revision
/"
sed
-i
fontconfig/fontconfig.h
\
-e
"/^#define FC_MAJOR/s/[0-9]
[0-9]
*/
$major
/"
\
-e
"/^#define FC_MINOR/s/[0-9]
[0-9]
*/
$minor
/"
\
-e
"/^#define FC_REVISION/s/[0-9]
[0-9]
*/
$revision
/"
#
# Compute pretty form of new version number
...
...
@@ -104,7 +101,7 @@ if [ $version != $last ]; then
sed
-n
'/^2\.[0-9.]*$/,$p'
README
)
>
README.tmp
||
(
echo
"README update failed"
;
exit
1
)
$test
mv
README.tmp README
mv
README.tmp README
fi
$test
git-commit
-m
"Bump version to
$version
"
\
...
...
@@ -117,5 +114,5 @@ $test git-tag -u 096c4dd3 -m"Version $version" $version
# Make distributed change log
$test
"
git-log --stat
$last
.. > ChangeLog-
$version
"
git-log
--stat
$last
..
>
ChangeLog-
$version
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