Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Oct 2012 10:11:47 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r242213 - user/crees/rclint
Message-ID:  <201210281011.q9SABlg1080647@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees (ports committer)
Date: Sun Oct 28 10:11:47 2012
New Revision: 242213
URL: http://svn.freebsd.org/changeset/base/242213

Log:
  Strip path from filename and assume '-' means '_' inside file

Modified:
  user/crees/rclint/Makefile
  user/crees/rclint/rclint.py

Modified: user/crees/rclint/Makefile
==============================================================================
--- user/crees/rclint/Makefile	Sun Oct 28 09:18:13 2012	(r242212)
+++ user/crees/rclint/Makefile	Sun Oct 28 10:11:47 2012	(r242213)
@@ -41,3 +41,7 @@ tarball:
 	${CP} ${FILES} rclint-${VERSION} && \
 	${TAR} cvfz rclint-${VERSION}.tar.gz rclint-${VERSION} && \
 	${RM} -rf rclint-${VERSION}
+	if [ "`id -un`@`hostname -s`" = "crees@pegasus" ]; then \
+		sudo cp rclint-${VERSION}.tar.gz /usr/local/www/data/dist/rclint/ &&\
+		scp rclint-${VERSION}.tar.gz freefall.FreeBSD.org:public_distfiles/rclint/; \
+	fi

Modified: user/crees/rclint/rclint.py
==============================================================================
--- user/crees/rclint/rclint.py	Sun Oct 28 09:18:13 2012	(r242212)
+++ user/crees/rclint/rclint.py	Sun Oct 28 10:11:47 2012	(r242213)
@@ -28,7 +28,7 @@ __version__ = '$FreeBSD$'
 
 MAJOR = 0
 MINOR = 0
-MICRO = 1
+MICRO = 2
 
 DATADIR = '.'
 
@@ -401,6 +401,7 @@ def do_rclint(filename):
     # Strip .in from filename
     logging.debug('Checking $name agrees with PROVIDE and filename')
     fn = filename[:-3] if filename[-3:] == '.in' else filename
+    fn = fn.split('/')[-1].replace('-', '_')
     n = get(lineobj['Variable'], 'name').value
     rcordervars = []
     for r in lineobj['Rcorder']:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210281011.q9SABlg1080647>