Module Name: src
Committed By: christos
Date: Fri May 8 16:40:10 UTC 2009
Modified Files:
src/external/bsd/file/dist: file2netbsd
Log Message:
add import script
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 src/external/bsd/file/dist/file2netbsd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/file/dist/file2netbsd
diff -u src/external/bsd/file/dist/file2netbsd:1.1.1.1 src/external/bsd/file/dist/file2netbsd:1.2
--- src/external/bsd/file/dist/file2netbsd:1.1.1.1 Fri May 8 12:35:04 2009
+++ src/external/bsd/file/dist/file2netbsd Fri May 8 12:40:10 2009
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: file2netbsd,v 1.1.1.1 2009/05/08 16:35:04 christos Exp $
+# $NetBSD: file2netbsd,v 1.2 2009/05/08 16:40:10 christos Exp $
#
# Copyright (c) 2003 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -33,8 +33,12 @@
# based on texinfo2netbsd
#
-# edit this
-file_vers='4.21'
+if [ -z "$1" ]
+then
+ echo "Usage $0: <file-version>" 1>&2
+ exit 1
+fi
+file_vers="$1"
#
# (usually) NO NEED TO EDIT BELOW THIS LINE
@@ -105,6 +109,6 @@
echo done
echo You can import now. Use the following command:
-echo cvs import src/dist/file CHRISTOS FILE${file_vers%.*}_${file_vers#*.}
+echo cvs import src/external/bsd/file/dist CHRISTOS FILE${file_vers%.*}_${file_vers#*.}
exit 0