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
52201f6c
Commit
52201f6c
authored
Nov 29, 2010
by
Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwre, default values of os and hw
parent
09aaa10d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
0 deletions
+57
-0
src/tools/pwre/src/os_freebsd/pwre.source
src/tools/pwre/src/os_freebsd/pwre.source
+19
-0
src/tools/pwre/src/os_linux/pwre.source
src/tools/pwre/src/os_linux/pwre.source
+19
-0
src/tools/pwre/src/os_macos/pwre.source
src/tools/pwre/src/os_macos/pwre.source
+19
-0
No files found.
src/tools/pwre/src/os_freebsd/pwre.source
View file @
52201f6c
...
...
@@ -52,6 +52,25 @@ if [ $1 = $cmd ]; then
return
fi
if
[
"
$pwre_os
"
==
""
]
;
then
# Set default values for os and hw
unamestr
=
`
eval uname
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
export
pwre_os
=
"os_macos"
export
pwre_hw
=
"hw_x86_64"
elif
[
$unamestr
==
"FreeBSD"
]
;
then
export
pwre_os
=
"os_freebsd"
export
pwre_hw
=
"hw_x86_64"
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
fi
export
pwre_os
=
"os_linux"
export
pwre_hw
=
"hw_"
$machine
fi
fi
$pwre_bin
/pwre.pl
$@
...
...
src/tools/pwre/src/os_linux/pwre.source
View file @
52201f6c
...
...
@@ -52,6 +52,25 @@ if [ $1 = $cmd ]; then
return
fi
if
[
"
$pwre_os
"
==
""
]
;
then
# Set default values for os and hw
unamestr
=
`
eval uname
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
export
pwre_os
=
"os_macos"
export
pwre_hw
=
"hw_x86_64"
elif
[
$unamestr
==
"FreeBSD"
]
;
then
export
pwre_os
=
"os_freebsd"
export
pwre_hw
=
"hw_x86_64"
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
fi
export
pwre_os
=
"os_linux"
export
pwre_hw
=
"hw_"
$machine
fi
fi
$pwre_bin
/pwre.pl
$@
...
...
src/tools/pwre/src/os_macos/pwre.source
View file @
52201f6c
...
...
@@ -52,6 +52,25 @@ if [ $1 = $cmd ]; then
return
fi
if
[
"
$pwre_os
"
==
""
]
;
then
# Set default values for os and hw
unamestr
=
`
eval uname
`
machine
=
`
eval uname
-m
`
if
[
$unamestr
==
"Darwin"
]
;
then
export
pwre_os
=
"os_macos"
export
pwre_hw
=
"hw_x86_64"
elif
[
$unamestr
==
"FreeBSD"
]
;
then
export
pwre_os
=
"os_freebsd"
export
pwre_hw
=
"hw_x86_64"
else
if
[
$machine
!=
"x86_64"
]
;
then
machine
=
"x86"
fi
export
pwre_os
=
"os_linux"
export
pwre_hw
=
"hw_"
$machine
fi
fi
$pwre_bin
/pwre.pl
$@
...
...
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