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

Copy to clipboard
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:

Copy to clipboard
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:

Copy to clipboard
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

Copy to clipboard
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)

Copy to clipboard
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.

Copy to clipboard
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.

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
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
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
Share
Shopping Cart
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
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
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
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools