Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
881a2f43
Commit
881a2f43
authored
Mar 10, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move check for hasher and set HSH var to set_hasherdir
parent
eeb379f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
loginhsh
bin/loginhsh
+2
-4
myhsh
bin/myhsh
+1
-7
hasher
share/eterbuild/functions/hasher
+5
-0
No files found.
bin/loginhsh
View file @
881a2f43
...
@@ -64,10 +64,8 @@ parse_cmd_pre "$@" --
...
@@ -64,10 +64,8 @@ parse_cmd_pre "$@" --
set_hasherdir
set_hasherdir
[
-n
"
$TESTMODE
"
]
&&
HASHERDIR
=
$HASHERDIR
-test
[
-n
"
$TESTMODE
"
]
&&
HASHERDIR
=
$HASHERDIR
-test
HSH
=
/usr/bin/hsh
if
[
-n
"
$TESTMODE
"
]
||
[
-n
"
$AUTOMODE
"
]
;
then
if
[
!
-x
"
$HSH
"
]
;
then
HASHERDIR
=
$HASHERDIR
-test
echo
"Please install hasher package before use it"
exit
1
fi
fi
# export OURAPTCONF with temp. file contains correct path to sources.list
# export OURAPTCONF with temp. file contains correct path to sources.list
...
...
bin/myhsh
View file @
881a2f43
...
@@ -59,13 +59,7 @@ set_hasherdir
...
@@ -59,13 +59,7 @@ set_hasherdir
mkdir
-p
$LOGDIR
$HASHERDIR
||
fatal
"cannot mkdir"
mkdir
-p
$LOGDIR
$HASHERDIR
||
fatal
"cannot mkdir"
check_locking
check_locking
HSH
=
/usr/bin/hsh
echog
"List of packages for build:
\$
LISTNAMES"
if
[
!
-x
"
$HSH
"
]
;
then
echo
"Please install hasher package before use it"
exit
1
fi
echog
"List of packages:
\$
LISTNAMES"
if
[
-z
"
${
LISTNAMES
/*spec/
}
"
]
;
then
if
[
-z
"
${
LISTNAMES
/*spec/
}
"
]
;
then
echo
"!!!!!!!!"
echo
"!!!!!!!!"
...
...
share/eterbuild/functions/hasher
View file @
881a2f43
...
@@ -7,6 +7,11 @@ load_mod rpm
...
@@ -7,6 +7,11 @@ load_mod rpm
set_hasherdir
()
set_hasherdir
()
{
{
HSH
=
/usr/bin/hsh
if
[
!
-x
"
$HSH
"
]
;
then
fatal
"Please install hasher package before use it"
fi
if
[
-z
"
$HASHERBASEDIR
"
]
;
then
if
[
-z
"
$HASHERBASEDIR
"
]
;
then
warning
"HASHERBASEDIR is not set. I will try with HASHERDIR, but you have to set HASHERBASEDIR in the config file"
warning
"HASHERBASEDIR is not set. I will try with HASHERDIR, but you have to set HASHERBASEDIR in the config file"
HASHERBASEDIR
=
$HASHERDIR
HASHERBASEDIR
=
$HASHERDIR
...
...
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