changeset 17911:058196d8908e

(vc-backend-admin): If there is no SCCS subdirectory yet, create it.
author André Spiegel <spiegel@gnu.org>
date Wed, 21 May 1997 14:42:09 +0000
parents f74cdb2aa9cc
children 653987823f79
files lisp/vc.el
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc.el	Wed May 21 07:09:21 1997 +0000
+++ b/lisp/vc.el	Wed May 21 14:42:09 1997 +0000
@@ -1957,6 +1957,9 @@
 	  ((file-exists-p "CVS") 'CVS)
 	  (t vc-default-back-end))))
     (cond ((eq backend 'SCCS)
+	   ;; If there is no SCCS subdirectory yet, create it.
+           ;; (SCCS could do without it, but VC requires it to be there.)
+           (if (not (file-exists-p "SCCS")) (make-directory "SCCS"))
 	   (apply 'vc-do-command nil 0 "admin" file 'MASTER	;; SCCS
                                  (and rev (concat "-r" rev))
                                  "-fb"