From: Elan Ruusamäe Date: Sat, 13 Feb 2010 19:52:47 +0000 (+0000) Subject: - drop unused macros X-Git-Url: http://git.pld-linux.org/?p=projects%2Fpld-ftp-admin.git;a=commitdiff_plain;h=f7ea3cc51fd9712060524a020e8aa689c331e67a - drop unused macros Changed files: shell/bashrc -> 1.15 --- diff --git a/shell/bashrc b/shell/bashrc index 6be714c..9c48e06 100644 --- a/shell/bashrc +++ b/shell/bashrc @@ -22,38 +22,6 @@ if [ "$FTPADM" = "glen" ]; then [ -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 (