Skip to content

Instantly share code, notes, and snippets.

@rsanchez
Created May 18, 2011 22:08
Show Gist options
  • Save rsanchez/979698 to your computer and use it in GitHub Desktop.
Save rsanchez/979698 to your computer and use it in GitHub Desktop.
#!/bin/sh
#change this to your path, this is probably it, though
eepath="/Applications/MAMP/htdocs/system/expressionengine/third_party"
#change this to your ct repository path
ctpath="/Users/myname/Documents/cartthrob_2/trunk/system/expressionengine/third_party"
eethemepath="$eepath/../../../themes/third_party"
ctthemepath="$ctpath/../../../themes/third_party"
rm -rf "$eepath/cartthrob"
rm -rf "$eepath/cartthrob_discount"
rm -rf "$eepath/cartthrob_order_items"
rm -rf "$eepath/cartthrob_price_modifiers"
rm -rf "$eepath/cartthrob_price_quantity_thresholds"
rm -rf "$eepath/cartthrob_price_simple"
rm -rf "$eethemepath/cartthrob"
ln -s "$ctpath/cartthrob" "$eepath/"
ln -s "$ctpath/cartthrob_discount" "$eepath/"
ln -s "$ctpath/cartthrob_order_items" "$eepath/"
ln -s "$ctpath/cartthrob_price_modifiers" "$eepath/"
ln -s "$ctpath/cartthrob_price_quantity_thresholds" "$eepath/"
ln -s "$ctpath/cartthrob_price_simple" "$eepath/"
ln -s "$ctthemepath/cartthrob" "$eethemepath/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment