entry)) { error("The origin tag does not exist."); } if (! isset($toRep->entry)) { error("The destination tag does not exist."); } if (! isset($local->entry)) { error("The current folder is not a local copy."); } if (has_uncommited_changes('.')) { error("Local copy contains uncommited changes."); } info("Converting local copy to origin."); `svn switch $from`; $tar = "tikiwiki-inc-$fromVersion-to-$toVersion.tar"; info("Converting to destination and packaging."); `svn switch $to | awk '/^[UA] / {print $2}' | grep -v devtools | xargs tar --exclude "*.svn*" -cf $tar`; `gzip -5 $tar`; info("Reverting to prior status."); `svn switch {$local->entry->url}`; echo "$tar.gz was created.\n";