Shell Script to Extract two Miva .pkg framework files, create git branches out of them, and launch gitk for diff'ing
- Download or save a copy of the Miva Framework .pkg files for the two frameworks that you want to compare.
- Put the
compare.sh
file in the same directory as the two frameworks. - Open up a git terminal and execute the following command:
sh process.sh framework-a.pkg framework-b.pkg
- Wait for the process to run (It should take about 30-60 seconds.)
- It will launch
gitk
so you can visually compare the two git branches. Ingitk
you can:- Select the "framework-b" branch
- Then right-click on the "framework-a" branch
- Select, "Diff this -> selected"
- Thats it! Compare the differences.
- Get Miva Framework .pkg files for the two frameworks that you want to compare.
- Rename the ".pkg" file extensions to ".tar.bz2"
- Extract each framwork to their own directories, (ex. /framework-a/ and /framework-b/) using a extraction program (7-Zip, WinZip, etc.)
- Create a new directory /git/
- Create a file /git/README.md with a basic title describing the project
# "Example Store's" Framework Diff
Date: 2017-09-01
- Your directory structure should look like this:
/framework-a/[framework-a's extracted files here]
/framework-b/[framework-b's extracted files here]
/git/README.md
- Issue the following commands on the
master
branchgit add .
, thengit commit -m "initial commit"
- Create & switch to a new
framework-a
branchgit checkout -b framework-a
. - Copy the contents of the framework-a framework's extracted pkg/tar.bz2 folder (
/framework-a/
) into/git/
- Index & commit the changes to the
framework-a
branch.
git add ., then
git commit -m "commiting framework-a framework files" - Switch back to the master branch.
git checkout master
- Create & switch to a new
framework-b
branchgit checkout -b framework-b
. - Copy the contents of the framework-bed framework's extracted pkg/tar.bz2 folder (
/framework-b/
) into/git/
. - Index & commit the changes to the
framework-b
branch.
git add ., then
git commit -m "commiting framework-b framework files" - Switch back to the
master
branch. - Open the
/git/
directory in a git gui, like SourceTree, and compare the two branches. (Note instead of using two branches, you could use two commits).