[Bug 74068] WISH USABILITY - add full directory (recursive and not) to project
Danny Angelo Carminati Grein
danny.cabelo at gmx.net
Fri Sep 17 15:23:53 UTC 2004
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=74068
------- Additional Comments From danny.cabelo gmx net 2004-09-17 02:37 -------
This little script added to "External Tools" can help a little with this problem.. Go to Settings > Configure KDevelop select "External Tools" and select tab "Directory Context Menu" then click Add and write this:
Menu text: Add Directory (Recursive)
Executable: path/to/this/script/diraddrecursive.sh
Parameters: %D %S
This will put all subdirs and files into your Project.kdevelop.filelist, but this will but full path to files, not relative to project home. This isnt a problem. Its usefull this way. What we can do, is ask some more work on part_tools.cpp/h to get more Enviroment variables to work with.. but this is another wish report..
Myself can work on this, but Im little lazy to set a full cvs env to build kdevelop here... Someday I will do this.. If anybody can help me work in this script to get working better..
more features needed in this script:
- use relative path to project home.
- checking dup files
I think that using some regexp will solve this... anybody can help me?
If this script get fully working this can be added in future kdevelop release?
Bye
---diraddrecusive.sh---
#!/bin/bash
PWD=`pwd`
PROJECT_PATH=$1
PROJECT_SELECTED=$2
cd $PROJECT_PATH
PROJECT=`find . -iname "*.kdevelop.filelist"`
find $PROJECT_SELECTED -iname '*.cpp' -or -iname '*.h' >> $PROJECT
cd $PWD
---diraddrecursive.sh---
More information about the KDevelop-devel
mailing list