]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- touchpkg() to touch every file from info file, needed for broken ftp admin scripts...
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Jan 2008 15:08:16 +0000 (15:08 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 21 Jan 2008 15:08:16 +0000 (15:08 +0000)
Changed files:
    shell/bashrc -> 1.6

shell/bashrc

index e4c17b5c43547ea2290b945fd53ab708d1a6963c..ca93025b24c0ff62c1ff3cdcb654bfc329a4e3d0 100644 (file)
@@ -49,6 +49,16 @@ cp-kde-i18n() {
        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
+}
+
 signpkg() {
        local pkg=$1
        if [ ! -f $pkg ]; then
This page took 1.028742 seconds and 4 git commands to generate.