1 # .bashrc - file executed when executing bash
3 # Put your local aliases here
4 alias rmpkg="~/pld-ftp-admin/scripts/remove.py"
5 alias gen-indexes="~/pld-ftp-admin/scripts/gen-indexes.py"
8 ~/pld-ftp-admin/scripts/test-move.py "$@" || return $?
10 echo >&2 "Checking signatures"
11 testsignpkg "$@" || return $?
17 testsignpkg "$@" || return $?
19 __wrap_signpkg "$@" || return $?
20 ~/pld-ftp-admin/scripts/move.py "$@" || return $?
23 alias ls='ls --color=auto -BFN --show-control-chars'
29 alias h='history $(($LINES-6))'
32 if [ "${SSH_CONNECTION%% *}" = "194.106.120.90" ]; then
33 [ -f ~/okas/bashrc ] && . ~/okas/bashrc
34 [ -x ~/okas/cvsstat ] && alias cvsstat=~/okas/cvsstat
40 if [ ! -f $info ]; then
41 echo >&2 "cp-kde-i18n: Specify existing info file"
45 for arch in alpha athlon i386 i586 i686 ppc sparc; do
46 awk -F: -vsarch=$sarch '/^file:/ && $2 == sarch {print $3}' $info | xargs -ri cp -al ../../$sarch/RPMS/{} ../../$arch/RPMS
47 awk -F: -vsarch=$sarch -varch=$arch '/^file:/ && $2 == sarch {printf("%s:%s:%s\n", $1, arch, $3)}' $info >> $info
53 if [ ! -f $pkg ]; then
54 echo >&2 "signpkg: Specify existing info file"
57 local key=$(rpm -E '%_gpg_name')
58 awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
59 xargs -l1 -ri rpm -qp --qf '{} %{SIGGPG:pgpsig}\n' {} 2>/dev/null | \
60 awk -vk="$key" '$NF ~ k {print > "/dev/stderr"; next} {print $1}' | \
61 xargs -l512 -r rpm --resign
66 if [ ! -f $pkg ]; then
67 echo >&2 "testsignpkg: Specify existing info file"
72 awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
74 rpm -qp --qf '%{name}-%{version}-%{release}.%{arch} %{siggpg}\n' 2>/dev/null | \
76 sed -e 's,^,ERR: ,;s,(none),is not signed,'
90 cd ~/pld-ftp-admin/modules