SOURCES: rpm-build.sh - use also $dist in alias names - --up befor...

glen glen at pld-linux.org
Mon Dec 11 23:24:00 CET 2006


Author: glen                         Date: Mon Dec 11 22:24:00 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- use also $dist in alias names
- --up before --verify in dist-verify

---- Files affected:
SOURCES:
   rpm-build.sh (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/rpm-build.sh
diff -u SOURCES/rpm-build.sh:1.12 SOURCES/rpm-build.sh:1.13
--- SOURCES/rpm-build.sh:1.12	Sat Dec  9 16:18:30 2006
+++ SOURCES/rpm-build.sh	Mon Dec 11 23:23:54 2006
@@ -1,17 +1,23 @@
 # shell aliases and functions for PLD Developer
 # $Id$
 
+# set $dist, used by functions below
+[ -n "$dist" ] || dist=$(awk '{print tolower($NF)}' /etc/pld-release 2>/dev/null | tr -d '()')
+
 alias cv='cvs status -v'
-alias ac='poldek -q --sn ac --cmd'
-alias ac-requires='ac what-requires'
-alias ac-provides='ac what-provides'
-alias ac-verify='poldek --sn ac --sn ac-ready --verify=deps'
-alias ac-tag='./builder -cf -T AC-branch -r HEAD'
 alias adif="dif -x '*.m4' -x ltmain.sh -x install-sh -x depcomp -x 'Makefile.in' -x compile -x 'config.*' -x configure -x missing -x mkinstalldirs -x autom4te.cache"
 alias pclean="sed -i~ -e '/^\(?\|=\+$\|unchanged:\|diff\|only\|Only\|Files\|Common\|Index:\|RCS file\|retrieving\)/d'"
 
-# set $distro, used by functions below
-[ -n "$distro" ] || distro=$(awk '{print tolower($NF)}' /etc/pld-release 2>/dev/null | tr -d '()')
+alias $dist="poldek -q --sn $dist --cmd"
+alias $dist-requires="$dist what-requires"
+alias $dist-provides="$dist what-provides"
+alias $dist-tag="./builder -cf -T $(echo $dist | tr '[a-z]' '[A-Z]')-branch -r HEAD"
+alias $dist-verify=dist-verify
+
+function dist-verify() {
+	poldek --sn $dist --sn $dist-ready --up
+	poldek --sn $dist --sn $dist-ready --verify=deps
+}
 
 # merges two patches
 # requires: patchutils
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/rpm-build.sh?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list