Yes, I change it in some places.eranif wrote:Thanks, if u think the configure script needs to be updated as well, please do
Ok, I attached an archive with scripts
Changes:
Because of changing functionality for make_deb.sh script we need to change make_repo.sh script:1) configure script:
- variable for_debian and function generateControlFile() are removed
2) fakeroot/DEBIAN/postinst script:
- creating the desktop icon for codelite removed;
- added update-menus command for taking changes for WMs.
3) added fakeroot/DEBIAN/postinst script:
- added update-menus command for taking changes for WMs.
4) make_deb.sh script:
- added generating three files: fakeroot/DEBIAN/control (with additional sections Priority, Installed-Size, and changed section Section); fakeroot/usr/share/applications/codelite.desktop (for DE menus); fakeroot/usr/menu/codelite (for WM menus);
- added command line parser, so now for building the archive for Ubuntu we need to call it like this:
./make_deb.sh -u and we'll get codelite_1.0.2527-ubuntu0_i386.deb (for example)
- and for building the archive for Debian we need to call it like this:
./make_deb.sh -b and we'll get codelite_1.0.2527_i386.deb (for example)
In Ubuntu package all codelite files will be installed to /usr/local folder,
and in Debian package all codelite files will be installed to /usr folder.
1) Easy way to do it is just to add option -u in the appropriate string (create only Ubuntu package):
./make_deb.sh -u
2) The other way is to use my script make_repo.sh from attached archive.
a) ./make_repo.sh -u functionality identical to your script
b) ./make_repo.sh -d creates Debian package and copies it to /var/www/debs/ directory and creates Packages.gz file and moves it to /var/www/debs/dists/lenny/restricted/binary-i386/ directory (the directory must exists)
c) ./make_repo.sh -a makes the a) and b) steps.
So, I decided to realize creating two different packages for Debian and Ubuntu from compiled sources instead of only Ubuntu package.
Feel free to use this scripts, but first test it please
Alex