diff options
Diffstat (limited to 'debian/_buildscripts/local/hook_examples/tdebase')
3 files changed, 68 insertions, 0 deletions
diff --git a/debian/_buildscripts/local/hook_examples/tdebase/018_kate_save_all.diff b/debian/_buildscripts/local/hook_examples/tdebase/018_kate_save_all.diff new file mode 100644 index 000000000..16ac7c7dc --- /dev/null +++ b/debian/_buildscripts/local/hook_examples/tdebase/018_kate_save_all.diff @@ -0,0 +1,37 @@ +diff -Nur ori/tdebase/kate/app/katedocmanager.cpp new/tdebase/kate/app/katedocmanager.cpp +--- ori/tdebase/kate/app/katedocmanager.cpp 2013-07-27 02:36:57.000000000 +0900 ++++ new/tdebase/kate/app/katedocmanager.cpp 2013-12-05 15:56:20.311928016 +0900 +@@ -381,7 +381,6 @@ + return modified; + } + +- + bool KateDocManager::queryCloseDocuments(KateMainWindow *w) + { + uint docCount = m_docList.count(); +@@ -436,12 +435,22 @@ + return true; + } + +- + void KateDocManager::saveAll() + { + for (TQPtrListIterator<Kate::Document> it(m_docList); it.current(); ++it) +- if ( it.current()->isModified() && it.current()->views().count() ) +- ((Kate::View*)it.current()->views().first())->save(); ++ { ++ if (it.current()->views().count()) ++ { ++ if (it.current()->url().isEmpty()) ++ { ++ ((Kate::View*)it.current()->views().first())->saveAs(); ++ } ++ else if (it.current()->isModified()) ++ { ++ ((Kate::View*)it.current()->views().first())->save(); ++ } ++ } ++ } + } + + void KateDocManager::saveDocumentList (TDEConfig* config) diff --git a/debian/_buildscripts/local/hook_examples/tdebase/pre_build.sh b/debian/_buildscripts/local/hook_examples/tdebase/pre_build.sh new file mode 100755 index 000000000..e764c29ad --- /dev/null +++ b/debian/_buildscripts/local/hook_examples/tdebase/pre_build.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +CURR_DIR=$PWD +cd "$PKG_BUILD_PATH" + +# Apply patches +if [ "$bool_COPY_PKG_SRC" = "y" ]; then + echo -e "${CLightPurple}Applying Kate save all patch${CNone}" + patch -p2 < "$HOOK_DIR/$PKG_NAME/018_kate_save_all.diff" + + echo -e "${CLightPurple}Applying SAK patch${CNone}" + patch -p1 < "$HOOK_DIR/$PKG_NAME/tdebase-usesak.diff" +fi + +cd "$CURR_DIR" +return 0 diff --git a/debian/_buildscripts/local/hook_examples/tdebase/tdebase-usesak.diff b/debian/_buildscripts/local/hook_examples/tdebase/tdebase-usesak.diff new file mode 100644 index 000000000..e85ca1047 --- /dev/null +++ b/debian/_buildscripts/local/hook_examples/tdebase/tdebase-usesak.diff @@ -0,0 +1,15 @@ +diff -urNa tdebase/tdm/config.def tdebase.new/tdm/config.def +--- tdebase/tdm/config.def 2013-09-12 11:51:29.000000000 -0500 ++++ tdebase.new/tdm/config.def 2014-02-10 06:29:38.537806886 -0600 +@@ -2010,9 +2010,9 @@ + + Key: UseSAK + Type: bool +-Default: true ++Default: false + User: greeter +-Instance: #*/! ++Instance: #:*/false + Comment: + SAK + Description: |