svenskmand {l Wrote}:What about the folders (and their content): DeferredShadingMedia, fonts, gui, levels, overlays, packs and particle, they are not in the SVN? What is for OD and what is for Ogre? What needs to be maintained?
svenskmand {l Wrote}:What is the format of the version number? Is it e.g. always [0-9].[0-9].[0-9] like in '#define VERSION "0.4.5"' or can it be two digits?
>>> version = "0.4.5"
>>> major,minor,patch = version.split('.')
>>> major,minor,patch
('0', '4', '5')
>>>
#!/bin/sh
# Making a source tar file for OpenDungeons
cd ~/Desktop
mkdir OpenDungeons
cd OpenDungeons
svn co https://opendungeons.svn.sourceforge.net/svnroot/opendungeons/Media Media
cd ~/Desktop
git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons OpenDungeonsCode
cd OpenDungeonsCode
git checkout -b development remotes/origin/development
cd ~/Desktop
cp -R OpenDungeonsCode/* OpenDungeons
rm -rf OpenDungeonsCode
find OpenDungeons -name ".svn" -exec rm -rf {} \;
find OpenDungeons -name ".git" -exec rm -rf {} \;
tar czf opendungeons-`grep VERSION OpenDungeons/include/Defines.h | sed 's:#define.*VERSION. *"::' | sed 's:".*::'`.tar.gz OpenDungeons
rm -rf OpenDungeons
svenskmand {l Wrote}:So I have this script which makes a tarball of the source by grabbing everything from svn and git:
- {l Code}: {l Select All Code}
#!/bin/sh
# Making a source tar file for OpenDungeons
cd ~/Desktop
mkdir OpenDungeons
cd OpenDungeons
svn co https://opendungeons.svn.sourceforge.net/svnroot/opendungeons/Media Media
cd ~/Desktop
git clone git://opendungeons.git.sourceforge.net/gitroot/opendungeons/opendungeons OpenDungeonsCode
cd OpenDungeonsCode
git checkout -b development remotes/origin/development
cd ~/Desktop
cp -R OpenDungeonsCode/* OpenDungeons
rm -rf OpenDungeonsCode
find OpenDungeons -name ".svn" -exec rm -rf {} \;
find OpenDungeons -name ".git" -exec rm -rf {} \;
tar czf opendungeons-`grep VERSION OpenDungeons/include/Defines.h | sed 's:#define.*VERSION. *"::' | sed 's:".*::'`.tar.gz OpenDungeons
rm -rf OpenDungeons
and I need to name the tarball using the version number, so I found it in the Defines.h file, and I want to know the format of the number such that I do not get errors in my script when grabbing it.
grep -i version ~/OpenDungeons/include/Defines.h | awk '{print $3}'
Source: opendungeons
Section: games
Priority: extra
Maintainer:
Build-Depends: debhelper (>= 5), cmake, libois-dev, libfreeimage-dev, libsfml-dev, libopenal-dev, libogre-dev, libcegui-dev
Standards-Version: 3.7.2
Package: opendungeons
Architecture: any
Depends: ${shlibs:Depends}
Description: OpenDungeons http://opendungeons.sourceforge.net/
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
CFLAGS = -Wall -g
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS += -O0
else
CFLAGS += -O2
endif
configure:
dh_testdir
build:
dh_testdir
cmake .
$(MAKE)
clean:
dh_testdir
dh_testroot
# Add here commands to clean up after the build process.
-$(MAKE) distclean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
# Folders
install -d ${CURDIR}/debian/opendungeons/opt/opendungeons/
#Binary
install ${CURDIR}/OpenDungeons.bin ${CURDIR}/debian/opendungeons/opt/opendungeons/
#Media
cp -r ${CURDIR}/Media ${CURDIR}/debian/opendungeons/opt/opendungeons/Media
touch ${CURDIR}/Ogre.log
touch ${CURDIR}/CEGUI.log
#config-files and empty log-files (with write access)
install -m a+rw ${CURDIR}/ogre.cfg ${CURDIR}/debian/opendungeons/opt/opendungeons/
install -m a+rw ${CURDIR}/plugins.cfg ${CURDIR}/debian/opendungeons/opt/opendungeons/
install -m a+rw ${CURDIR}/resources_install.cfg ${CURDIR}/debian/opendungeons/opt/opendungeons/resources.cfg
install -m a+rw ${CURDIR}/Ogre.log ${CURDIR}/debian/opendungeons/opt/opendungeons/
install -m a+rw ${CURDIR}/CEGUI.log ${CURDIR}/debian/opendungeons/opt/opendungeons/
#write acces for users
chmod a+w ${CURDIR}/debian/opendungeons/opt/opendungeons/*.log
chmod a+w ${CURDIR}/debian/opendungeons/opt/opendungeons/*.cfg
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
jawCross {l Wrote}:(First posts on forum are moderated by admins)
jawCross {l Wrote}:I have experience with Ubuntu and PPA and I would like to see Opendungeons easily installable.
#PreRequirement1: universe-repository enabled (libois-1.2.0, libsfml-audio1.6 libsmfl-system1.6 needed for libogremain-1.7.2)
#PreRequirement2: multiverse-repository enabled (nvidia-cg-toolkit needed for libogremain-1.7.2)
sudo add-apt-repository ppa:andrewfenn/ogredev
sudo add-apt-repository ppa:aapo-rantalainen/games
sudo apt-get update
sudo apt-get install libfreeimage3 libzzip-0-13 opendungeons
#(Installation size to liveCD/Fresh-Installed-system is ~140MB)
opendungeons
jawCross {l Wrote}:*Writing logs and configs to ~/.opendungeons. (How OpenDungeons should be started then?)
Users browsing this forum: No registered users and 1 guest