[Midnightbsd-cvs] mports: licenseit: add licenseit.

ctriv at midnightbsd.org ctriv at midnightbsd.org
Wed Oct 8 00:59:23 EDT 2008


Log Message:
-----------
add licenseit.  A simmple script for making it quick and easy to license a
port.  It downloads the port, starts a shell in the working directory, and
once that shell exists, it starts your $EDITOR on the right line of the
makefile.

Added Files:
-----------
    mports/Tools/scripts:
        licenseit (r1.1)

-------------- next part --------------
--- /dev/null
+++ Tools/scripts/licenseit
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $MidnightBSD: mports/Tools/scripts/licenseit,v 1.1 2008/10/08 04:59:22 ctriv Exp $
+#
+
+LINENUM=`grep -n COMMENT Makefile | cut -f 1 -d :`
+LINENUM=`expr 1 + $LINENUM`
+PORT=$PWD
+
+make BATCH=1 extract
+cd `make -V WRKSRC` && ls && $SHELL
+cd $PORT
+$EDITOR +$LINENUM Makefile
+
+if make FATAL_LICENSE_CHECK=1 check-license; then
+	cvs ci -m "license" Makefile
+fi
+
+rm -r work/
\ No newline at end of file


More information about the Midnightbsd-cvs mailing list