]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
builder: understand $TARGET in $LOGFILE to be stripped when adding to .itignore
authorElan Ruusamäe <glen@delfi.ee>
Sat, 18 Aug 2012 08:48:42 +0000 (11:48 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 18 Aug 2012 08:48:42 +0000 (11:48 +0300)
builder.sh

index 997c71d51a7e95c3e49e4f380c29c8d3d1150814..277e87b9c560174af9935b70fdfbdc597f4e30bf 100755 (executable)
@@ -927,7 +927,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\),*,g')
+                       local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\|TARGET\),*,g')
                        if [ "$logfile" ]; then
                                cvsignore_df "$logfile"
                        fi
This page took 0.050587 seconds and 4 git commands to generate.