From bd9e6617827818fd043452c08c606f07b78014a0 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdesdk@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kapptemplate/kpartplugin.module | 69 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 kapptemplate/kpartplugin.module (limited to 'kapptemplate/kpartplugin.module') diff --git a/kapptemplate/kpartplugin.module b/kapptemplate/kpartplugin.module new file mode 100644 index 00000000..86d20120 --- /dev/null +++ b/kapptemplate/kpartplugin.module @@ -0,0 +1,69 @@ +########################################################################### +# +# STEP 1: GET USER INFORMATION +# +########################################################################### +# Get the application name +APPTYPE="plugin"; +APPDEFAULT="Test"; +GetProperName + +# Get the application version +GetVersion + +# Get the root where this framework will be installed +GetLocationRoot + +# Get the author's name +GetAuthorName + +# Get the author's email +GetAuthorEmail + +# Verify that everything is grand +$ECHO; +$ECHO "Here is what I have:"; +$ECHO "The plugin: $APP_NAME v$APP_VERSION"; +$ECHO "Installed in: $LOCATION_ROOT"; +$ECHO "Author: $AUTHOR <$EMAIL>"; +$ECHO; +$ECHO "Is this correct (Y/n)? "; +$ECHO ": \c"; +read Y_N; +if [ $Y_N -a $Y_N = 'n' ]; +then + $ECHO "AUGH! Well, try again."; + exit 0; +fi +$ECHO; + +$ECHO "OK, Here we go!!"; + +########################################################################### +# +# STEP 2: CREATE APPLICATION FRAMEWORK +# +########################################################################### +CreateAppFramework + +########################################################################### +# +# STEP 3: GENERATE PLUGIN-SPECIFIC FILES +# +########################################################################### +for EXE_FILE in $KPARTPLUGIN_FILES; +do + . $SHARE_DIR/kpartplugin/$EXE_FILE || exit 1; +done + +########################################################################### +# +# STEP 4: FINAL STEPS +# +########################################################################### + +if [ ! $NOINIT ]; then + cd $LOCATION_ROOT && $MAKE -f Makefile.cvs +fi + +$ECHO "DONE!"; -- cgit v1.2.1