pld-ftp-admin: shell/bashrc - drop unused macros
glen
glen at pld-linux.org
Sat Feb 13 20:52:52 CET 2010
Author: glen Date: Sat Feb 13 19:52:52 2010 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- drop unused macros
---- Files affected:
pld-ftp-admin/shell:
bashrc (1.14 -> 1.15)
---- Diffs:
================================================================
Index: pld-ftp-admin/shell/bashrc
diff -u pld-ftp-admin/shell/bashrc:1.14 pld-ftp-admin/shell/bashrc:1.15
--- pld-ftp-admin/shell/bashrc:1.14 Wed May 27 21:31:22 2009
+++ pld-ftp-admin/shell/bashrc Sat Feb 13 20:52:47 2010
@@ -22,38 +22,6 @@
[ -f /usr/share/okas/bashrc ] && . /usr/share/okas/bashrc
fi
-cp-kde-i18n() {
- local sarch=$1
- local info=$2
-
- if [ -z "$sarch" -o ! -f "$info" ]; then
- echo >&2 "Usage: cp-kde-i18n [SOURCE ARCH] [INFO FILE]"
- return
- fi
- if [ $(grep -c "^file:$sarch:" "$info") = 0 ]; then
- echo >&2 "cp-kde-i18n: $sarch doesn't look like arch that has packages built"
- return
- fi
-
- for arch in amd64 alpha athlon i386 i586 i686 ppc sparc; do
- if [ "$arch" = "$sarch" ]; then
- continue
- fi
- awk -F: -vsarch=$sarch '/^file:/ && $2 == sarch {print $3}' $info | xargs -ri cp -al ../../$sarch/RPMS/{} ../../$arch/RPMS
- awk -F: -vsarch=$sarch -varch=$arch '/^file:/ && $2 == sarch {printf("%s:%s:%s\n", $1, arch, $3)}' $info >> $info
- done
-}
-
-touchpkg() {
- local pkg=$1
- if [ ! -f $pkg ]; then
- echo >&2 "touchpkg: Specify existing info file"
- return
- fi
- awk -F: '/^file:/{arch=$2; file=$3; printf("../../%s/RPMS/%s\n", arch, file)}' "$@" | \
- xargs -l512 -r touch
-}
-
unlocktree() {
for tree in "$@"; do
(
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-ftp-admin/shell/bashrc?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list