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
16e29941
Commit
16e29941
authored
Jul 20, 2008
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add missed functions file
parent
39089217
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
89 additions
and
0 deletions
+89
-0
config
etersoft-build-utils/share/eterbuild/functions/config
+60
-0
gettext
etersoft-build-utils/share/eterbuild/functions/gettext
+29
-0
No files found.
etersoft-build-utils/share/eterbuild/functions/config
0 → 100644
View file @
16e29941
#!/bin/bash
# 2008 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
# SUDO
SUDO
=
"sudo"
# for some shells? not for bash
test
-z
"
$UID
"
&&
UID
=
`
id
-u
`
if
[
$UID
=
"0"
]
;
then
SUDO
=
""
fi
# Get tmp dir for our using
OURTMPDIR
=
$TMPDIR
[
-z
"
$OURTMPDIR
"
]
||
[
-d
"
$OURTMPDIR
"
]
||
OURTMPDIR
=
/tmp
# It can be overrides in config
DEFAULTARCH
=
i586
[
`
uname
-m
`
=
"x86_64"
]
&&
DEFAULTARCH
=
`
uname
-m
`
NICE
=
"nice"
RPMBUILD
=
rpmbuild
is_git
()
{
local
DIR
=
$1
[
-n
"
$DIR
"
]
&&
[
-d
"
$DIR
/.git"
]
&&
return
0
[
-d
".git"
]
&&
return
0
# hack for support spec in some subdir
[
-d
"../.git"
]
&&
return
0
return
1
}
RPMDIR
=
"
$HOME
/RPM"
[
-n
"
$APTCONF
"
]
||
APTCONF
=
$ETERBUILDETC
/apt/apt.conf
#OWNERMAIL=`grep "^%packager" ~/.rpmmacros | head -n 1 | sed -e "s/%packager[ \t]*//g"`
OWNERMAIL
=
`
rpm
--eval
%packager
`
UPLOADDIR
=
"
$RPMDIR
/upload"
LOGDIR
=
"
$RPMDIR
/log"
REMOTERPMDIR
=
HASHERDIR
=
"
$HOME
/hasher"
HASHER_NOCHECK
=
nvr,gpg,packager,buildtime
HASHERARG
=
"--eager-cleanup"
[
-n
"
$DEBUG
"
]
&&
HASHERARG
=
"-v
$HASHERARG
"
RSYNCSISYPHUS
=
rsync.altlinux.org::ALTLinux/Sisyphus
RSYNCINCOMING
=
devel:/incoming
#SSH_KEYFILE=~/.ssh/id_dsa
BUILDSERVER
=
#BUILDSERVERPATH="$HASHERDIR/repo/i586/RPMS.hasher"
PKGREPLBASE
=
$ETERBUILDDIR
/pkgrepl
test
-f
/etc/eterbuild/config
&&
.
/etc/eterbuild/config
test
-f
~/.eterbuild-config
&&
.
~/.eterbuild-config
# obsoleted
test
-f
~/.ebconfig
&&
.
~/.ebconfig
etersoft-build-utils/share/eterbuild/functions/gettext
0 → 100644
View file @
16e29941
#!/bin/bash
# 2008 Etersoft www.etersoft.ru
# Author: Vitaly Lipatov <lav@etersoft.ru>
# Public domain
if
which gettext.sh &>/dev/null
;
then
.
gettext.sh
else
eval_gettext
()
{
echo
-n
$@
}
fi
TEXTDOMAIN
=
etersoft-build-utils
export
TEXTDOMAIN
TEXTDOMAINDIR
=
'/usr/share/locale'
export
TEXTDOMAINDIR
echog
()
{
if
[
"
$1
"
=
"-n"
]
;
then
shift
eval_gettext
"
$@
"
else
eval_gettext
"
$@
"
;
echo
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