[Frugalware-darcs] pacman: makepkg: new function: msg2()

VMiklos vmiklos at frugalware.org
Thu Mar 16 17:46:24 CET 2006


[makepkg: new function: msg2()
VMiklos <vmiklos at frugalware.org>**20060126214431
 from crazy
] {
hunk ./scripts/makepkg 91
+
+msg2() {
+        if [ "$USE_COLOR" = "Y" -o "$USE_COLOR" = "y" ]; then
+                echo -e "   \033[1;34m->\033[1;0m \033[1;1m$1\033[1;0m" >&2
+        else
+                echo "   -> $1" >&2
+        fi
+}
+
hunk ./scripts/makepkg 350
-	msg "Generating $1-$pkgver-$pkgrel-$CARCH.fpm"
+	msg "Generating files for $1 :"
hunk ./scripts/makepkg 352
-	echo "    .PKGINFO file... " >&2
+	msg2 ".PKGINFO file... " >&2
hunk ./scripts/makepkg 406
-		echo "    .INSTALL file... " >&2
+		msg2 ".INSTALL file... " >&2
hunk ./scripts/makepkg 411
-		echo "    .CHANGELOG file... " >&2
+		msg2 ".CHANGELOG file... " >&2
hunk ./scripts/makepkg 416
-	echo "    .FILELIST file... " >&2
+	msg2 ".FILELIST file... " >&2
hunk ./scripts/makepkg 420
-	echo "    Compressing package... " >&2
+	msg2 "Compressing $1-$pkgver-$pkgrel-$CARCH.fpm " >&2
}


More information about the Frugalware-darcs mailing list