Jump to content

Compiling Doomseeker on Linux: Difference between revisions

Line 124: Line 124:
If you want to backup Doomseeker, do the following:
If you want to backup Doomseeker, do the following:


Create and name a directory with the corresponding Doomseeker version/revision, build type and copy doomseeker, libwadseeker.so and the engines directory to it:
Create and name a directory with the corresponding Doomseeker version/revision, build type and copy doomseeker, libwadseeker.so* and the engines directory to it:
<pre>
<pre>
cd ~/doomseeker_build/doomseeker/build &&
cd ~/doomseeker_build/doomseeker/build &&
Line 130: Line 130:
k="$(sed -n 's/.*CMAKE_BUILD_TYPE:STRING=\(.*\)/\1/p' CMakeCache.txt)"; else k=''; fi &&
k="$(sed -n 's/.*CMAKE_BUILD_TYPE:STRING=\(.*\)/\1/p' CMakeCache.txt)"; else k=''; fi &&
if [ -n "$k" ]; then b="-BuildType$k"; else b=''; fi &&
if [ -n "$k" ]; then b="-BuildType$k"; else b=''; fi &&
h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' ../src/core/svnrevision.h)" &&
r=../src/core/svnrevision.h && if [ -f "$r" ] && [ "$(hg status $r)" != "? $r" ]; then r=$r; else
if [ -n "$(hg cat -r $h ../src/core/versiondefs.h 2>/dev/null)" ]; then r=h; else r=cmake; fi &&
r=../src/core/gitinfo.h; fi && h="$(sed -n 's/.*#define HG_REVISION_HASH_STRING "\(.*\)".*/\1/p' $r)" &&
BACKUPDOOMSEEKER="../../$(hg cat -r $h ../src/core/versiondefs.$r | sed -n 's/.*VERSION_STRING "\(.*\)".*/\1/p')\
if [ -n "$(hg cat -r $h ../src/core/versiondefs.h 2>/dev/null)" ]; then s=h; else s=cmake; fi &&
$(sed -n 's/.*#define SVN_REVISION_STRING "\(.*\)".*/\-\1/p' ../src/core/svnrevision.h)-$h$b" &&
BACKUPDOOMSEEKER="../../$(hg cat -r $h ../src/core/versiondefs.$s | sed -n 's/.*VERSION_STRING "\(.*\)".*/\1/p')\
$(sed -n 's/.*#define SVN_REVISION_STRING "\(.*\)".*/\-\1/p' $r)\
$(sed -n 's/.*#define HG_TIME "\(.*\)".*/\-\1/p' $r)-$h$b" &&
mkdir -pv "$BACKUPDOOMSEEKER" &&
mkdir -pv "$BACKUPDOOMSEEKER" &&
cp -rv doomseeker libwadseeker.so engines \
cp -rv doomseeker libwadseeker.so* engines \
"$BACKUPDOOMSEEKER"/
"$BACKUPDOOMSEEKER"/
</pre>
</pre>
Line 162: Line 164:
</pre>
</pre>


Copy doomseeker, libwadseeker.so and the engines directory to /usr/games/doomseeker/:
Copy doomseeker, libwadseeker.so* and the engines directory to /usr/games/doomseeker/:
<pre>
<pre>
cd ~/doomseeker_build/doomseeker/build &&
cd ~/doomseeker_build/doomseeker/build &&
sudo cp -rv doomseeker libwadseeker.so engines \
sudo cp -rv doomseeker libwadseeker.so* engines \
/usr/games/doomseeker/
/usr/games/doomseeker/
</pre>
</pre>
20

edits