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
0b1e1737
Commit
0b1e1737
authored
Jan 06, 2009
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split alt specific functions
parent
24337c0f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
52 deletions
+53
-52
alt
share/eterbuild/functions/alt
+52
-0
common
share/eterbuild/functions/common
+1
-52
No files found.
share/eterbuild/functions/alt
0 → 100644
View file @
0b1e1737
#!/bin/bash
# 2003-2008 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
is_alt
()
{
test
-f
/etc/altlinux-release
return
$?
}
# Internal
set_target_type
()
{
if
echo
$1
|
grep
"^M[0-9][0-9]$"
>
/dev/null
;
then
MENV
=
$1
return
0
fi
case
"
$1
"
in
(
"DD"
|
"SS"
|
"EE"
)
MENV
=
"
$1
"
return
0
;
;;
esac
return
1
;
}
get_distr_version
()
{
echo
$1
|
sed
-e
"s|M
\(
[0-9]
\)\(
[0-9]
\)
|
\1\.\2
|g"
|
sed
-e
"s|SS|Sisyphus|g"
|
sed
-e
"s|DD|Daedalus|g"
}
set_incoming
()
{
INCOMING
=
"Sisyphus"
test
-z
"
$1
"
&&
return
case
"
$1
"
in
(
"DD"
)
INCOMING
=
"Daedalus"
;;
(
"SS"
)
INCOMING
=
"Sisyphus"
;;
*
)
if
[
-n
"
$UPDATES
"
]
;
then
INCOMING
=
"updates/
`
get_distr_version
$1
`
"
else
INCOMING
=
"backports/
`
get_distr_version
$1
`
"
fi
;;
esac
}
share/eterbuild/functions/common
View file @
0b1e1737
...
...
@@ -54,12 +54,6 @@ print_list()
done
}
is_alt
()
{
test
-f
/etc/altlinux-release
return
$?
}
# Obsoleted:
# TODO: check for .gear, not .git?
is_git
()
...
...
@@ -101,23 +95,8 @@ load_mod()
done
}
load_mod config gettext spec
load_mod config gettext
alt
spec
# Internal
set_target_type
()
{
if
echo
$1
|
grep
"^M[0-9][0-9]$"
>
/dev/null
;
then
MENV
=
$1
return
0
fi
case
"
$1
"
in
(
"DD"
|
"SS"
|
"EE"
)
MENV
=
"
$1
"
return
0
;
;;
esac
return
1
;
}
# Internal
# , : -M23 -M24 ,
...
...
@@ -181,32 +160,6 @@ check_key()
return
0
}
get_distr_version
()
{
echo
$1
|
sed
-e
"s|M
\(
[0-9]
\)\(
[0-9]
\)
|
\1\.\2
|g"
|
sed
-e
"s|SS|Sisyphus|g"
|
sed
-e
"s|DD|Daedalus|g"
}
set_incoming
()
{
INCOMING
=
"Sisyphus"
test
-z
"
$1
"
&&
return
case
"
$1
"
in
(
"DD"
)
INCOMING
=
"Daedalus"
;;
(
"SS"
)
INCOMING
=
"Sisyphus"
;;
*
)
if
[
-n
"
$UPDATES
"
]
;
then
INCOMING
=
"updates/
`
get_distr_version
$1
`
"
else
INCOMING
=
"backports/
`
get_distr_version
$1
`
"
fi
;;
esac
}
add_changelog_helper
()
{
# don't work sometime?
...
...
@@ -243,7 +196,3 @@ make_temp_file()
fi
}
load_mod
()
{
.
$ETERBUILDDIR
/functions/
$1
}
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