Loading...
 

Source Code Copyright Change Info

 Please Note

On the https://tiki.org/Roundtable-Meeting-2018-04 it was decided to remove the years in the Copyright notices so we do not need to do this every year anymore.


Here are some notes about how to change the copyright comments in the source code which need updating every year. Thanks Jyhem for doing this and providing this info!

Jean-Marc Libs wrote:
Well, it's not scripts, it's just command line trickery. I can explain from my bash history, though.


For a grep command which does not get in useless directories

alias greps='grep --exclude-dir=.svn --exclude-dir='\''unified-*'\'''


Last year I found it tedious to look for the about half dozen ways of writing the copyright line and normalize them. This year it paid off. I looked for different ways and only found one file:

greps -r 'Copyright 2002-2014' * | grep -v 'by authors of the Tiki Wiki CMS Groupware Project'

So I copied a standard copyright line to the file.

Then I changed them all:

greps -rl 'Copyright 2002-2014 by authors of the Tiki' * | xargs perl -pi.bak -e 's/Copyright 2002-2014 by authors of the Tiki Wiki CMS Groupware Project/Copyright 2002-2015 by authors of the Tiki Wiki CMS Groupware Project/'


As it looked good, I cleaned up

find . -name "*.bak" | xargs \rm


Now comes the hard part: committing everything at once nearly always fails at the Sourceforge level, so it needs to be restarted, or split in smaller parts, etc.
So I just commit bunches of 200 files and again and again nearly forever. This can be vastly improved (20 is about right. It should be calculated from the results of «svn status | wc -l » divided by 200, rounded up)

for((i=0;i<20;i++)); do svn up; svn status | grep "^M" | sed -e 's/^M *//' | tail -n 200 | xargs svn commit --username jyhem --password 'xxxxx' -m "Copyright bumped to 2015 Happy new year (again)"; done


...and as we are semi-automatic merging currently (note, do it before branching next time! wink) i'll need to commit the merge in the same way.

for((i=0;i<20;i++)); do svn up; svn status | grep "^M" | sed -e 's/^M *//' | tail -n 200 | xargs svn commit --username jonnybradley --password 'xxxxx' -m "[MRG] Automatic merge, branches/15.x 57934 to 57955 (batch commit)"; done

Jean-Marc Libs wrote:

It's easier done than automated, honestly. Anyone interested is welcome to document it somewhere.

Cheers,
J-M



I feel strongly this should not be done on a yearly basis. It creates pollution in commit logs, and wastes everyone's time for no real benefit. Marc Laporte

Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting 7.x
Administration
Ajax 2.x
Articles & Submissions
Backlinks
Banner
Batch 6.x
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution 2.x
Cookie
Copyright
Credits 6.x
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
DogFood
Draw 7.x
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Group
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping 3.x
Mobile Tiki and Voice Tiki
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment 5.x
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links 3.x
Share
Shopping Cart 5.x
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags 2.x
Task
Tell a Friend, alert + Social Bookmarking
Terms and Conditions
Theme
TikiTests 2.x
Timesheet
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
WebHelp
Webmail and Groupmail
WebServices 3.x
Wiki 3D
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives 4.x
WYSIWTSN 4.x
WYSIWYCA
WYSIWYG 2.x
XMLRPC
XMPP




Useful Tools