]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- try to add logfile to .cvsignore
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 19 Aug 2010 12:57:42 +0000 (12:57 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.624

builder.sh

index c0c2355792b787606758f78f94c4d5b8124941cc..b69aacfb92e27d5b42086a4412e7380bfb184e4e 100644 (file)
@@ -738,6 +738,15 @@ get_spec() {
                        rm "$ASSUMED_NAME/CVS/Entries.Static"
                        cvsignore_df .cvsignore
 
+                       # add default log format to .cvsignore if it is relative
+                       if [ "$LOGFILE" == $(basename "$LOGFILE") ]; then
+                               # substitute known "macros" to glob
+                               local logfile=$(echo "$LOGFILE" | sed -e 's,\$\(PACKAGE_NAME\|DATE\),*,g')
+                               if [ "$logfile" ]; then
+                                       cvsignore_df "$logfile"
+                               fi
+                       fi
+
                        # create symlinks for tools
                        if [ "$SYMLINK_TOOLS" != "no" ]; then
                                for a in dropin md5 adapter builder {relup,compile,repackage,rsync,pearize}.sh pldnotify.awk; do
This page took 0.029938 seconds and 4 git commands to generate.