Plan 9 from Bell Labs’s /usr/web/sources/contrib/btdn/src/changelog/changelog.rc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# Author: Benjamin T. D. Newman
# License: Public domain!

changelog=ChangeLog
changelogapplied=changelogapplied

patchesapplied=/n/sources/patch/applied
patches=`{ls -tr $patchesapplied}

fn changelogapply {
echo changelogapply: $1
echo `{ls -ld $1} >> $changelog
cat $1/readme >> $changelog
echo $1 >> $changelogapplied
}

for(i in $patches){
grep $i $changelogapplied > /dev/null || changelogapply $i
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.