SCCS 파일을 생성할 수 없습니다.

SCCS 파일을 생성할 수 없습니다.

저는 Ubuntu13.04에서 작업 중입니다. quit.c라는 파일을 생성했으며 이 파일을 SCCS 파일 s.quit.c에 체크인하려고 합니다. admin다음과 같은 명령을 사용하여 SCCS 파일을 생성합니다.

ravbholua@ravbholua-Aspire-5315:~/CCPP/HelloWorld/das/das1/sccs$ admin -i quit.c s.quit.c
admin: quit.c is an invalid name.  SCCS file names must begin `s.'

admin: The 'i' keyletter can't be used with multiple files.
ravbholua@ravbholua-Aspire-5315:~/CCPP/HelloWorld/das/das1/sccs$

예전과 문법이 바뀐 것 같아요. 그렇습니까? 체크인을 위한 SCCS 파일을 어떻게 생성하나요?

답변1

아직 SCCS 파일이 없으면 다음을 quit.c수행해야 합니다 .

mkdir SCCS
sccs create quit.c

s.quit.cSCCS에서 생성됩니다 .

를 사용하여 편집 sccs edit quit.c하고 을 사용하여 제출할 수 있습니다 sccs delta quit.c.

다음을 잘라내어 붙여넣어 시도해 볼 수 있습니다.

mkdir sccs_test
cd sccs_test
echo 'hallo' > quit.c
mkdir SCCS
sccs create quit.c
sccs edit quit.c
echo 'bye' >> quit.c
sccs delta quit.c

마지막 명령에는 주석이 필요합니다.

답변2

을(를) 사용하지 SCCS않고 다른 것을 사용하고 있습니다... SCCS프로그램 은 admin귀하가 보고한 것과 다른 오류 메시지를 표시합니다. 보자:

admin -i quit.c s.quit.c
ERROR: more than one file (ad15)

ad15:
"more than one file"
You are trying to create more than one SCCS file, and you supplied
the 'i' keyletter. You can only create one file when you supply
the 'i' keyletter.

-i와 해당 인수 사이에 공백을 삽입하는 간단한 실수를 저질렀습니다. 귀하의 질문에 대한 응답으로 해당 질문에 대한 도움말 텍스트를 향상시켰으므로 새로운 도움말 텍스트는 다음과 같습니다.

ad15:
"more than one file"
You are trying to create more than one SCCS file, and you supplied
the 'i' keyletter. You can only create one file when you supply
the 'i' keyletter. A possible reason for the problem is that you
have a space between the 'i' keyletter and the input filename. 

POSIX매뉴얼 페이지를 참조하십시오 admin:

-내 이름]

새 SCCS 파일 텍스트를 가져와야 하는 파일 이름을 지정합니다. 이 텍스트는 파일의 첫 번째 증분을 구성합니다(증분 번호 지정 체계는 -r 옵션 참조). -i 옵션을 사용하지만 name 옵션 인수를 생략하는 경우 표준 입력을 읽어 텍스트를 가져와야 합니다. 이 옵션을 생략하면 파일 데이터 없이 제어 정보만 포함하여 SCCS 파일을 생성해야 합니다. -i 옵션은 -n 옵션을 의미합니다.

그리고 원래 admin매뉴얼 페이지http://sccs.sourceforge.net/man/sccs-admin.1.html

-i[filename]
  Initializes  the  history file with text from the indicated file.
  This text constitutes the initial delta, or set of checked-in
  changes.  If filename is omitted, the initial text is obtained
  from the standard input.  Omitting  the  -i option  altogether
  creates an empty s.file.  You can only initialize one s.file
  with text using -i unless you use the bulk option -N.  The 
  -i option implies the -n option.

SCCS일반적으로 낮은 수준의 명령 디렉터리를 사용하지 않고 sccs프런트엔드를 통해 사용하는 것이 좋습니다 . 그러니 전화주세요:

sccs create quit.c

그러면 자동으로 디렉토리가 생성되고 필요한 경우 해당 디렉토리에 SCCS새 파일이 저장됩니다 .s.quit.c

참고: 이 소프트웨어에 대한 일반 정보는 다음 SCCS위치에 있습니다.http://sccs.sf.net최신 리소스는 다음 schilytools위치에 포함되어 있습니다.http://sourceforge.net/projects/schilytools/files/

관련 정보