]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: replace more macros in logfile
authorElan Ruusamäe <glen@delfi.ee>
Thu, 19 Jun 2014 08:31:24 +0000 (11:31 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Thu, 19 Jun 2014 08:31:24 +0000 (11:31 +0300)
builder.sh

index adfb34490dcfe30da8392fa7f506200a8229c8e1..a1937f784bb5a77a06db0a254df607858a9e831b 100755 (executable)
@@ -958,7 +958,7 @@ get_spec() {
                # add default log format to .gitignore if it is relative to package dir
                if [ -n "$LOGFILE" -a "$LOGFILE" = "${LOGFILE##*/}" ]; then
                        # substitute known "macros" to glob
-                       local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\|TARGET\),*,g')
+                       local logfile=$(echo "$LOGFILE" | sed -r -e 's,\$(PACKAGE_(NAME|VERSION|RELEASE)|DATE|TARGET),*,g')
                        if [ "$logfile" ]; then
                                cvsignore_df "$logfile"
                        fi
This page took 0.027886 seconds and 4 git commands to generate.