LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-30-2005, 01:46 PM   #1
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Rep: Reputation: 45
How to make a Changelog like Slackware's


Hi,

I was wondering how i can make an automatic changelog like the one used in slackware's
http://slackware.com/changelog/current.php?cpu=i386

Is there a special package i should install and run for that? Or are there certain commands i should use?
 
Old 01-30-2005, 02:46 PM   #2
BrianW
Member
 
Registered: Jul 2003
Location: Montana
Distribution: Slackware
Posts: 246

Rep: Reputation: Disabled
If I'm not mistaken, I do believe Patrick just manually makes the changelog. :-/
 
Old 01-30-2005, 03:22 PM   #3
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Doesn't he atleast write the extra bit of the log, then use a script which will sort it, compare with original log (diff), and add it to the top? or somethign?

I meen i've seen changelogs on the net that say something like
"Do not modify, automatically generated"

So im sure there's some program, or some script out there that can do the job.
 
Old 01-30-2005, 03:29 PM   #4
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,550

Rep: Reputation: 120Reputation: 120
You could use cat like :

cat Changelog.current Changelog.old > Changelog.new
 
Old 01-30-2005, 06:20 PM   #5
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
Don't know how Pat does it but emacs will handle ChangeLogs automatically. Start emacs and type
Code:
M-x add-change-log-entry
(Note: replace the M with the ALT key on modern computers. emacs supports TAB completion just like the command line.)

emacs will create a default ChangeLog file in your home directory and create a header with both the date and who made the entry than place a * before each entry. Save your entry with ctrl-x,ctrl-s and exit emacs with ctrl-x,ctrl-c.

Keep your ChangeLog up-to-date and you'll never be stuck trying to remember how you did something!

If your new to emacs type
Code:
ctrl-h t
for the tutorial.

Dennisk
Phoenix Linux Users Group - Penguins in the desert
 
Old 01-31-2005, 08:13 AM   #6
xushi
Senior Member
 
Registered: Jun 2003
Location: UK
Distribution: Gentoo
Posts: 1,288

Original Poster
Rep: Reputation: 45
Excellent!

First time i use emacs, but so far it looks good! I just have three issues i want to ask about..

Do you just hit <enter> between each entry? because it only starts with one *, and doesn't put any more.

Also, does the log save under, or above what you already have in the changelog?

Finally, does it appear with the latest added entries (or days) on the top, and the oldest on the bottom (like in slack-current), or the oldest entries (or days) on top, and latest on bottom?

Thanks again.
 
Old 02-01-2005, 04:17 PM   #7
dennisk
Member
 
Registered: May 2004
Location: Southwestern USA
Distribution: CentOS
Posts: 279

Rep: Reputation: 30
I create a new entry each time I do something, makes it easier to see what order I did things in, but you can just hit enter if you prefer.

Newest entries are always on top.

dennisk
 
Old 02-01-2005, 04:25 PM   #8
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
CVS will do this for you through expanding keywords.
Chances are, if you want/need a changelog, you should use CVS.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware's FILELIST.TXT DaHammer Slackware 5 09-26-2004 04:29 AM
Slackware's beautiful fonts t2701 Slackware 2 09-04-2004 09:59 PM
Slackware's groups broken? ProtoformX Slackware 6 05-15-2004 03:40 AM
Mouse in Slackware's KDE Manarius Slackware 3 11-06-2003 10:28 PM
I broke slackware's keyboard Tech1 Slackware 6 05-07-2003 06:52 AM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration