Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
500da2e1
Commit
500da2e1
authored
Jul 21, 2011
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwre configure, previously stated version kept
parent
e8addfc3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
src/tools/pwre/src/os_linux/pwre_configure.sh
src/tools/pwre/src/os_linux/pwre_configure.sh
+20
-3
No files found.
src/tools/pwre/src/os_linux/pwre_configure.sh
View file @
500da2e1
...
@@ -8,8 +8,12 @@ pwre_configure.h
...
@@ -8,8 +8,12 @@ pwre_configure.h
Arguments
Arguments
--help Display help.
--help Display help.
--version State fix version of loadfiles, eg
--version State fix version of loadfiles, eg
pwre configure --version "29-MAY-2011 16:00:00"
> pwre configure --version "29-MAY-2011 16:00:00"
--reset-version Reset previous version
EOF
EOF
}
}
...
@@ -270,6 +274,19 @@ if [ "$1" = "--help" ]; then
...
@@ -270,6 +274,19 @@ if [ "$1" = "--help" ]; then
exit
exit
elif
[
"
$1
"
=
"--version"
]
&&
[
"
$2
"
!=
""
]
&&
[
"
$3
"
!=
""
]
;
then
elif
[
"
$1
"
=
"--version"
]
&&
[
"
$2
"
!=
""
]
&&
[
"
$3
"
!=
""
]
;
then
buildversion
=
$2
" "
$3
buildversion
=
$2
" "
$3
elif
[
"
$1
"
=
"--reset-version"
]
;
then
buildversion
=
""
elif
[
"
$1
"
!=
""
]
;
then
echo
"Unknown option
\"
$1
\"
"
exit
else
# Catch current version
if
[
-e
$cfile
]
;
then
ver
=
`
eval cat
$cfile
|
grep
"
\b
export PWRE_CONF_BUILDVERSION"
`
ver
=
${
ver
#*=\
"}
ver=
${
ver
%\
"}
buildversion=
$ver
fi
fi
fi
...
...
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