LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   How to make a Changelog like Slackware's (https://www.linuxquestions.org/questions/slackware-14/how-to-make-a-changelog-like-slackwares-284150/)

xushi 01-30-2005 01:46 PM

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?

BrianW 01-30-2005 02:46 PM

If I'm not mistaken, I do believe Patrick just manually makes the changelog. :-/

xushi 01-30-2005 03:22 PM

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.

keefaz 01-30-2005 03:29 PM

You could use cat like :

cat Changelog.current Changelog.old > Changelog.new

dennisk 01-30-2005 06:20 PM

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

xushi 01-31-2005 08:13 AM

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.

dennisk 02-01-2005 04:17 PM

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

mdarby 02-01-2005 04:25 PM

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


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