Author Topic: A little suggestion about  (Read 3241 times)

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
A little suggestion about
« on: August 29, 2005, 01:11:48 am »
Just wanting to suggest this type of "" :

Code: [Select]

$APP_DIR/codeblocks.exe [email protected]

instead of :

Code: [Select]

$APP_DIR/codeblocks.exe [email protected]

This permits to move the folder containing C::B...

Yes I know I shouldn't have created a topic on the forum for something like this :p

Offline grv575

  • Official tester
  • Regular
  • ***
  • Posts: 381
Re: A little suggestion about
« Reply #1 on: August 29, 2005, 01:22:37 am »
why not just use relative paths then?


better not to assume the shell supports pwd (although can't think of what environment would not).

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4291
    • Code::Blocks IDE
Re: A little suggestion about
« Reply #2 on: August 29, 2005, 08:27:19 am »
The reason it's not using relative paths is so it can be used as a desktop shortcut ;)
Besides, if you move the folder, run ./update again and will be updated...

Be patient!
This bug will be fixed soon...

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 837
Re: A little suggestion about
« Reply #3 on: August 29, 2005, 10:36:47 am »
I've looked into ebuild installing C::B in Gentoo Linux,810.0.html.
Here's what I've found:

Code: [Select]
# Code::Blocks has a funny install procedure that puts all of its
# executables and libraries inside a single directory structure. This may be
# useful for installation on Windows, but does not follow FHS standards on
# linux. The following patch modifies the code to read the plugins and data
# from the proper paths.

# Code::Blocks has an odd makefile. This patch also makes it accept the user's
epatch ${FILESDIR}/${P}.patch

And one more peace of code:
Code: [Select]
# And now the screwy Code::Blocks installation. It is built around a windows
# install model where all executables, data, and libraries are under a
# program's directory. We need to run the install script which will
# "install" to ${S}/src/ouput and then manually move everything to ${D} in
# the proper FHS paths
cd ${S}/src
. update

# install the icon
cd ${S}/src/src/resources/icons
insinto /usr/share/pixmaps
newins app_64.xpm codeblocks.xpm

# fixup permissions and move files from src/output to their proper places in
# ${D}
cd ${S}/src/output

# rename the main executable to something less windows-ish
newbin codeblocks.exe codeblocks
dobin console_runner.exe

# tips.txt belongs in share
insinto /usr/share/${PN}
doins tips.txt
cd share/CodeBlocks

# now setup /usr/share/codeblocks and move the data files there
doins -r *.zip images/ templates/ lexers/

# move the plugin libraries out of this "share"
insopts -m0755
insinto /usr/lib/${PN}
doins -r plugins/
insopts -m0644

# and the docs
cd ${S}/src

# and lastly, the desktop entry
make_desktop_entry codeblocks "Code::Blocks IDE" "codeblocks.xpm" \

And as I see it install C::B just like any other app under Linux copying all resources into default system directories - there's no need for any running script (but unfortunately will allow only one C::B version to be installed at once). Maybe some UNIX-like installer should be added ?

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: A little suggestion about
« Reply #4 on: August 29, 2005, 11:55:30 am »
Ok that's why my shortcut didn't work :D

It would be cool if there were an Ubuntu package, too...