Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # For list of recommended patches on http://pkp.sfu.ca/wiki/index.php/OCS_2.3.5_Recommended_Patches as of 2014-01-28
- # I was faced by a similar situation that OP tshore was in http://pkp.sfu.ca/support/forum/viewtopic.php?f=14&t=10270
- # Initially I tried a git clone http://github.com/pkp/ocs and submodules,checkout stable tags etc etc, however I
- # quickly ran into trouble, as git merge/ git cherry-pick didn't want to play along. So this is what I settled on.
- # Seems to be a handy (if somewhat laborious) way of applying patches and seeing/tracking what has changed on your
- # local install.
- # SETUP
- curl -s http://pkp.sfu.ca/ocs/download/ocs-2.3.5.tar.gz | tar -zxvf -
- mv ocs-2.3.5/* .
- rm -r ocs-2.3.5/
- mv config.TEMPLATE.inc.php config.inc.php
- #chmod skipped as SuexecUserGroup in effect
- mkdir ../ocs-{files,public}
- # emacs config.inc.php # see file for instructions ?
- echo 'cache/' > .gitignore
- echo 'RedirectMatch 404 /\.git' >> .htaccess
- git init .
- git add .
- git commit -m 'initial commit'
- #I branch here just ... because (its cheaP? )
- git checkout -b patches
- # Bug #6900: Submissions with tags in titles truncated to '...' in submission lists
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6900
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3751 | git apply
- # % Total % Received % Xferd Average Speed Time Time Time Current
- # Dload Upload Total Spent Left Speed
- #100 20408 100 20408 0 0 11359 0 0:00:01 0:00:01 --:--:-- 47131
- git status
- # On branch patches
- # Changes not staged for commit:
- # (use "git add <file>..." to update what will be committed)
- # (use "git checkout -- <file>..." to discard changes in working directory)
- #
- # modified: plugins/generic/staticPages/settingsForm.tpl
- # modified: templates/author/active.tpl
- # modified: templates/author/completed.tpl
- # modified: templates/comment/comments.tpl
- # modified: templates/director/schedulingQueue.tpl
- # modified: templates/director/submissionsAccepted.tpl
- # modified: templates/director/submissionsArchives.tpl
- # modified: templates/director/submissionsInReview.tpl
- # modified: templates/director/submissionsUnassigned.tpl
- # modified: templates/manager/conferenceEventLog.tpl
- # modified: templates/manager/reviewForms/reviewFormElements.tpl
- # modified: templates/reviewer/active.tpl
- # modified: templates/reviewer/completed.tpl
- # modified: templates/rt/rt.tpl
- # modified: templates/trackDirector/submissionEventLog.tpl
- # modified: templates/trackDirector/submissionEventLogEntry.tpl
- # modified: templates/trackDirector/submissionHistory.tpl
- # modified: templates/trackDirector/submissionsAccepted.tpl
- # modified: templates/trackDirector/submissionsArchives.tpl
- # modified: templates/trackDirector/submissionsInReview.tpl
- #
- # no changes added to commit (use "git add" and/or "git commit -a")
- git commit -am " Bug 6900: Submissions with tags in titles truncated to '...' in submission lists"
- # Bug #7425: Favicon missing on paper view and help pages
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7425
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3764 | git apply
- git commit -am 'Bug 7425: Favicon missing on paper view and help pages'
- # Bug #7427: Favicon missing on reading tools and editor comments pages
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7427
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3766 | git apply
- git commit -am 'Bug 7427: - Favicon missing on reading tools and editor comments pages '
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=6495
- # Bug #6495: Favicon doesn't display in Internet Explorer
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3771 | git apply
- git commit -am "Bug 6495: Favicon doesn't display in IE"
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7275
- # Bug #7275: MergeUsers errors when updating comments
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3792 | git apply
- git commit -am "Bug 7275: MergeUsers errors when updating comments"
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7957
- # Bug #7957: login source parameter needs escaping
- # not is from is from pkp/lib repo, hence path substitution
- curl -s http:// pkp.sfu.ca/bugzilla/attachment.cgi?id=3874 | sed -r -e 's#(a|b)/templates#a/lib/pkp/templates#g' | git apply
- git commit -am "Bug 7957: login source parameter needs escaping"
- # Bug 8003 - Browse by title not working
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8003
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3886 | git apply
- git commit -am 'Bug 8003: Browse by title not working'
- # Bug 8077 - Reference parameter with default
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8077
- # note addition of .patch to commit url
- curl -s https://github.com/pkp/ocs/commit/ec25e9fec9dff13ce434488011964c060f84883b.patch | git apply
- git commit -am 'Bug 8077: Reference parameter with default'
- # Bug 8081 - Typo in UserExportDOM
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8081
- # Comment 1 on bug page is for master branch, we are assuming ocs-stable-2_3 is the relevant branch
- # i.e. comment 2
- curl -s https://github.com/pkp/ocs/commit/9f52c6a11ee33a77807a11246b9c23d770d310e5.patch | git apply
- git commit -am 'Bug 8081: Typo in UserExportDOM'
- # Bug 8082 - Unable to specify sched conf path on user import CLI
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8082
- curl -s https://github.com/pkp/ocs/commit/b21a23a1814f0434004ca7785c92cca033264f8c.patch | git apply
- git commit -am 'Bug 8082: Unable to specify sched conf path on user import CLI'
- # Bug 8089 - PHP fatal error when viewing Notifications
- # skipped, as it doesn't seem to be relevant.
- # Bug 8104 - Paper event log always lists the same user
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8104
- curl -s https://github.com/pkp/ocs/commit/704591963863d83a989dc9347daf23a23bb0c4ba.patch | git apply
- git commit -am 'Bug 8104: Paper event log always lists the same user'
- # Bug 8144 - PayPal payments never complete with site restriction enabled
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8144
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3927 | git apply
- git commit -am 'Bug 8144: PayPal payments never complete with site restriction enabled'
- # Bug 8200 - OCS director submission validation overzealous in separate submission process
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8200
- # aah, nice a hint on how to apply github commits as patches :)
- curl -s https://github.com/pkp/ocs/commit/c14f10dee35a42d8264ecdfe3a2c1f57d3870c37.diff| git apply
- git commit -am 'Bug 8200 - OCS director submission validation overzealous in separate submission process'
- # Bug 8321 - Cannot set editor version with subsequent revisions
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8321
- # correct patch seems to be Comment 2 Alec Smecher 2013-07-18 09:45:02 PDT
- curl -s https://github.com/pkp/ocs/commit/3073fd99a11aa74cb311a72622cdc29f27168617.patch | git apply
- git commit -am 'Bug 8321: Cannot set editor version with subsequent revisions'
- # Bug 8328 - "Author registration closed" message untranslated
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8328
- curl -s https://github.com/pkp/ocs/commit/ef0203a5fec36b1b53c52cc3fb106d9bc799b5eb.diff | git apply
- git commit -am 'Bug 8328: "Author registration closed" message untranslated'
- # Bug 8355 - Director's sort by track causes SQL error
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8355
- curl -s https://github.com/pkp/ocs/commit/73183d814cd519af7d8ea54acda8ed8d37875b3e.patch | git apply
- git commit -am "Bug 8355: Director's sort by track causes SQL error"
- # Bug 7544 - session_is_registered function is removed in PHP 5.4
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7544
- # patches are numerous but the one you want for ocs-2_3_5 from zip is
- # the linked in Comment 12 Alec Smecher 2013-07-31 15:12:02 PDT
- curl -s https://github.com/pkp/pkp-lib/commit/be5189d450563e5e7caac322070f3a754e46d11f.patch | sed -r -e 's#classes/#lib/pkp/classes/#g' | git apply
- git commit -am 'Bug 7544: session_is_registered function is removed in PHP 5.4'
- # Bug 8357 - Director's Presentations sort by tracks erroneously sorts by submit date
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8357
- # Patch associated with 'Comment 2' Alec Smecher 2013-08-02 09:17:02 PDT
- curl -s https://github.com/pkp/ocs/commit/02a344b1b15d75baf643f6f20f7beb2c7633c5f1.patch | git apply
- git commit -am "Bug 8357: Director's Presentations sort by tracks erroneously sorts by submit date"
- # Bug 8396 - File manager with path_info_disabled can explore outside files dir
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8396
- # Patch for ocs-2_3_5 is linked in "Comment 3" Alec Smecher 2013-08-15 09:45:02 PDT
- curl -s https://github.com/pkp/ocs/commit/b6da8cfcf13032a29694c46bbe21a52985b987a9.patch | git apply
- git commit -am 'Bug 8396: File manager with path_info_disabled can explore outside files dir'
- # Bug 8400 - Temporary file MIME type detection may fail with "file" tool fallback
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8400
- curl -s https://github.com/pkp/pkp-lib/commit/0f41aa61360adb7efd6cb151a945449ae0bb2260.diff | sed -r -e 's#(a|b)/classes#a/lib/pkp/classes#g' | git apply
- git commit -am 'Bug 8400: Temporary file MIME type detection may fail with "file" tool fallback'
- # Bug 7402 - Incomplete articles appear in Articles Report
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=7402
- curl -s https://github.com/pkp/ocs/commit/35d2c63d09b03dd933cfa181a9c6e02fd79ac2f0.diff | git apply
- git commit -am 'Bug 7402: Incomplete articles appear in Articles Report'
- # Bug 8119 - Author acknowledgment emails may be sent without contents
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8119
- # 2013-02-15 17:21 PST, Alec Smecher Patch against OCS 2.3.x (772 bytes, patch)
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3909 | git apply
- # Additional patch against OCS 2.3.5 (2.21 KB, patch) 2013-12-16 10:30 PST, Alec Smecher
- # has some issues, part of the patch seem to already be in zip/tgz
- # http://pkp.sfu.ca/ocs/download/ocs-2.3.5.tar.gz so we exclude it
- curl -s http://pkp.sfu.ca/bugzilla/attachment.cgi?id=3980 | git apply --exclude classes/mail/MailTemplate.inc.php
- git commit -am 'Bug 8119: Author acknowledgment emails may be sent without contents'
- # Bug 8226 - Update it_IT countries list
- # http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=8226
- # lib/pkp patch cd to correct path or replace it
- curl -s https://github.com/pkp/pkp-lib/commit/7ffb11de62fedfc5ed34775cff1a401c8804368f.diff | sed -r -e 's#locale/#lib/pkp/locale/#g' | git apply
- git commit -am 'Bug 8226: Update it_IT countries list'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement