]> git.pld-linux.org Git - packages/rpm-build-tools.git/blobdiff - builder.sh
- try to add logfile to .cvsignore
[packages/rpm-build-tools.git] / 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.030663 seconds and 4 git commands to generate.