Commits

Michael Granger committed 028c5a1

* Dist-script fixes.

Comments (0)

Files changed (2)

 	snapshot = false
 	wantsTag = true
 	wantsPrompt = true
+	make_manifest_flag = false
 
 	# Read command-line options
 	ARGV.options do |oparser|
 			debugMsg "Turned verbose on."
 		end
 
+		oparser.on( "--make-manifest", "-m", TrueClass, "(Re)create the MANIFEST file." ) do
+			make_manifest_flag = true
+		end
+
 		oparser.on( "--snapshot", "-s", TrueClass,
 			"Make a snapshot distribution instead of a versioned release" ) do
 			snapshot = true
 		oparser.parse!
 	end
 
+	if make_manifest_flag
+		$VERBOSE = true
+		makeManifest()
+		exit
+	end
+	
 	userversion = ARGV.shift
 
 	# Find the project name
 		/\bTEMPLATE\.\w+\.tpl\b/,
 		/\.cvsignore/,
 		/\.s?o$/,
+		%r{/\._},
 	]
 
 	# Set some ANSI escape code constants (Shamelessly stolen from Perl's