Tuesday, June 5, 2007

Small tutorial on SCCS

Small tutorial on SCCS

The Basics

SCCS is a software versioning and revision control system. It works by maintaining information about files in a main directory (called SCCS). Each person working on the code creates a symbolic link to this directory in his/her own workspace. There is an SCCS directory for each project.

Setup

Decide on a central repository to store the code. This can be something like /usr/src/projectName.
Create the SCCS directory there: mkdir /usr/src/projectName/SCCS. Put the original files into the SCCS system using
sccs create filename
where filename is the name of the file.

Usage

  • Creating a file and putting it into sccs:
    sccs create filename
  • checking files out for editing:
    sccs edit filename
  • checking files in after editing:
    sccs delget filename
  • getting a particular version of a file:
    sccs get filename gets the latest version of the file
    sccs get -rxx filename gets version xx of the file
  • getting the latest version of all files:
    sccs get SCCS/s.*
  • getting information about which files are checked out:
    sccs info
  • getting information about a particular file:
    sccs prt filename
  • Diff between current file and checked in version:
    sccs diffs filename

To modify a file, check it out for editing (edit), make the modifications, and then check it back in (delget).

Version info in the source code

SCCS provides the ability to mark your source files with the sccs information, such as the date of the last modification. To enable this, include the string %W% %G% in your source code. Generally this would be placed inside a comment. Once a file is checked in, the string gets replaced by the name of the file and the date of last modification.

44 comments:

BurtNBey said...

亞洲風暴貼圖區亞洲露點寫真集亞洲av成人站亞洲無碼潮吹美女貼圖照亞洲瘋亞洲瘋情網亞洲短片亞洲禁果亞洲禁果影城亞洲禁果影城姐弟亞洲禁果影城日本亞洲線上影片亞洲美女圖亞洲美女寫真圖片亞洲色影片亞洲色情自拍影片亞洲色情風暴亞洲色情貼圖區亞洲成人下載手機色小遊戲中部援交中部一夜情中部交友中部人聊天中部人聊天室中興嘟嘟房中國色情片網站中國女人性愛短片中國性愛城中國愛人情色網中國交有中年男的性天堂中年美女中年聊天中年視訊中年同志中部情色自拍照中部免費視訊聊天室中部視訊聊天室聊天室下載永平工商回收場做愛影片

瘋狂的 said...

想像是什麼並不重要,想像能做什麼才重要..................................................

tiktok said...

好文章給人的感覺就是很好,謝謝您~~..............................

佩怡 said...

笑口常開~~天天開心........................................

于名于名 said...

thank for share, it is very important . ̄︿ ̄..................................................

仁南 said...

may the blessing be with you.........................................

v辰原 said...

Cool blog網愛聊天室色情網站交友找啦咧免費影片成人笑話成人圖庫sexy女同志聊天室愛戀情人用品情趣爽翻天咆哮小老鼠入口85cc6k脫衣人妻sexy85c脫光光taiwansex淫女情色成人男女做愛美女做愛脫衣秀a片正妹淫蕩色情後宮040185c85c77p2p77p2p性幻想手淫18禁

NicolaSigel0508 said...

thank for share, it is very important . ̄︿ ̄

慧茹 said...

與其期盼別人疼你,不如自己疼自己。..................................................

昱廷昱廷 said...

文章很棒~感謝!!..................................................

姿婷 said...

謝謝您的分享~感恩唷!!..................................................

志平 said...

洪爺成人線上85cc免費看sogo色情77p2p免費看洪爺貼圖區85cc線上看5278論壇77p2p線上看洪爺色情片85ccA片go2a片77p2p免費影片網洪爺免費85cc免費短片GOGO2聊天室77p2p免費短片洪爺色情貼85cc影片5278影片網77p2p影片洪爺免費色情85cc觀看5278貼圖區77p2p觀看洪爺成年人網85cc成人片sogo成人77p2p成人片洪爺貼圖85cc影片區go2av影片77p2p影片區洪爺色論壇85cc免費影片區go2免費影片77p2p免費影片區洪爺影城85cc影城go2影片77p2p影城洪爺成人線上85cc免費看sogo色情77p2p免費看洪爺貼圖區85cc線上看5278論壇77p2p線上看洪爺色情片85ccA片

婷妏 said...

愛情不是慈善事業,不能隨便施捨。......................................................

韋于倫成 said...

任何你憂慮的事,你都應該去採取一點行動,不要只是在那邊想........................................

湘柏辰嬌 said...

精彩的文章是我停留的理由~.........................

雲亨Ab9雲亨 said...

Beauty, unaccompanied by virtue, is as a flower without perfume...................................................

SadeRa盈君iford0412 said...

感覺很好的blog,祝你開心喔..................................................

千惠千惠 said...

能猜得出女人真實年齡的男人也許耳聰目明,但肯定毫無大腦。哈哈!..................................................................

洪筱婷 said...

可愛的小天使~~~支持你~~~.................................................................

江婷 said...

與人相處不妨多用眼睛說話,多用嘴巴思考.................................................................

江婷 said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。......................................................................

嘉琬嘉琬 said...

成熟,就是有能力適應生活中的模糊。.................................................................

Zena said...

人生是故事的創造與遺忘。............................................................

吳婷婷 said...

Seeing is believing.百聞不如一見............................................................

新順 said...

留言是種美德-感謝分享..................................................................

陳韋夏陳韋夏益東富益東富 said...

要經常發表文章 最愛你了呦............................................................

陳博鈞陳博鈞 said...

來塊巧克力吧~~心情會好哦~~............................................................

JuanHer珮均 said...

支持你!!!加油囉!!!多謝............................................................

長修 said...

看到好文章心情就很好 ^^............................................................

曾法幸 said...

「仁慈」二個字,就能讓冬天三個月都溫暖。..................................................

思恬 said...

Make hay while the sun shines.............................................................

吳淑芬吳淑芬 said...

Quality is better than quantity.............................................................

冠梁宏 said...

你不能左右天氣,但你可以改變心情.................................................................

黃子楊琬和和 said...

No one knows the weight of anothers burden. ............................................................

群育航學 said...

良言一句三冬暖,惡語傷人六月寒。......................................................................

凱v胡倫 said...

Look before you leap.................................................

佳陳容 said...

聰明人之所以不會成功,是因為他們缺乏了堅忍的毅力。.................................................

宇緯陳陳宇緯陳陳 said...

心中醒,口中說,紙上作,不從身上習過,皆無用也。..................................................

于庭吳 said...

幸福不是一切,人還有責任。..................................................... ............

翊翊翊翊張瑜翊翊翊 said...

留言支持好作品~來打聲招呼-大家好!!! ..................................................................

翊翊翊翊張瑜翊翊翊 said...

偶爾上來逛逛,下次不知是否還有緣再進來,先祝您平安順利!!!..............................................................

文岳仲君 said...

很精彩的部落格 期待你的繼續加油..................................................

王雅俊 said...

回應是最大的支持^^y~~~甘吧嗲............................................................

万一宇 said...

原來這世上能跟你共同領略一個笑話的人竟如此難得......................................................................