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
6 alias dump-locks=~/pld-ftp-admin/scripts/dump-locks.py
11 ~/pld-ftp-admin/scripts/test-move.py "$@" || return $?
13 if [ "$to" = "PLD" -o "$to" = "updates" ]; then
14 echo >&2 "Checking signatures"
15 testsignpkg "$@" || return $?
22 testsignpkg "$@" || return $?
24 if [ "$2" = "PLD" -o "$2" = "updates" ]; then
25 __wrap_signpkg "$@" || return $?
27 ~/pld-ftp-admin/scripts/move.py "$@" || return $?
30 alias ls='ls --color=auto -BFN --show-control-chars'
36 alias h='history $(($LINES-6))'
39 if [ "${SSH_CONNECTION%% *}" = "194.106.120.90" ]; then
40 [ -f /usr/share/okas/bashrc ] && . /usr/share/okas/bashrc
47 if [ -z "$sarch" -o ! -f "$info" ]; then
48 echo >&2 "Usage: cp-kde-i18n [SOURCE ARCH] [INFO FILE]"
51 if [ $(grep -c "^file:$sarch:" "$info") = 0 ]; then
52 echo >&2 "cp-kde-i18n: $sarch doesn't look like arch that has packages built"
56 for arch in amd64 alpha athlon i386 i586 i686 ppc sparc; do
57 if [ "$arch" = "$sarch" ]; then
60 awk -F: -vsarch=$sarch '/^file:/ && $2 == sarch {print $3}' $info | xargs -ri cp -al ../../$sarch/RPMS/{} ../../$arch/RPMS
61 awk -F: -vsarch=$sarch -varch=$arch '/^file:/ && $2 == sarch {printf("%s:%s:%s\n", $1, arch, $3)}' $info >> $info
67 if [ ! -f $pkg ]; then
68 echo >&2 "touchpkg: Specify existing info file"
71 awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
77 if [ ! -f $pkg ]; then
78 echo >&2 "signpkg: Specify existing info file"
81 echo "$@" | xargs awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' | \
82 xargs -l1 -I '%{F}' rpm --nodigest --nosignature -qp --qf '%|SIGGPG?{}:{%{F}\n}|' '%{F}' | \
88 if [ ! -f $pkg ]; then
89 echo >&2 "testsignpkg: Specify existing info file"
94 awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
96 rpm -qp --qf '%{name}-%{version}-%{release}.%{arch} %{siggpg}\n' 2>/dev/null | \
98 sed -e 's,^,ERR: ,;s,(none),is not signed,'
112 cd ~/pld-ftp-admin/modules
116 ftpio.unlock('$tree')