mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Made elog compile and build on midas
This commit is contained in:
parent
91516bf9c7
commit
2c76f5ce69
2
Makefile
2
Makefile
@ -34,7 +34,7 @@ USE_LDAP = 0
|
|||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# Default compilation flags unless stated otherwise.
|
# Default compilation flags unless stated otherwise.
|
||||||
CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result
|
CFLAGS += -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations
|
||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
IFLAGS = -kr -nut -i3 -l110
|
IFLAGS = -kr -nut -i3 -l110
|
||||||
|
|||||||
25
build
25
build
@ -2,18 +2,6 @@
|
|||||||
#Usage: build [-n] <version> <release>
|
#Usage: build [-n] <version> <release>
|
||||||
#Build ELOG distribution
|
#Build ELOG distribution
|
||||||
|
|
||||||
while( 1 )
|
|
||||||
switch( "$1" )
|
|
||||||
case -n:
|
|
||||||
set noupdate
|
|
||||||
case --:
|
|
||||||
shift
|
|
||||||
default:
|
|
||||||
break
|
|
||||||
endsw
|
|
||||||
shift
|
|
||||||
end
|
|
||||||
|
|
||||||
if ($#argv < 2) then
|
if ($#argv < 2) then
|
||||||
echo "Usage: build <version> <release>"
|
echo "Usage: build <version> <release>"
|
||||||
exit
|
exit
|
||||||
@ -43,15 +31,9 @@ mkdir $dir/themes/default
|
|||||||
mkdir $dir/themes/default/icons
|
mkdir $dir/themes/default/icons
|
||||||
mkdir $dir/logbooks/
|
mkdir $dir/logbooks/
|
||||||
mkdir $dir/logbooks/demo
|
mkdir $dir/logbooks/demo
|
||||||
|
mkdir $dir/logbooks/demo/2001
|
||||||
mkdir $dir/../mxml
|
mkdir $dir/../mxml
|
||||||
|
|
||||||
# make sure we have up-to-date files
|
|
||||||
if ( ! $?noupdate ) then
|
|
||||||
echo Updating files...
|
|
||||||
( cd ../mxml ; git pull )
|
|
||||||
git pull
|
|
||||||
endif
|
|
||||||
|
|
||||||
# copy files to archive
|
# copy files to archive
|
||||||
unalias cp
|
unalias cp
|
||||||
cp -p src/*.c $dir/src
|
cp -p src/*.c $dir/src
|
||||||
@ -68,14 +50,13 @@ cp -p elogd.plist $dir
|
|||||||
cp -p doc/* $dir/doc
|
cp -p doc/* $dir/doc
|
||||||
cp -p man/* $dir/man
|
cp -p man/* $dir/man
|
||||||
cp -p contrib/* $dir/contrib
|
cp -p contrib/* $dir/contrib
|
||||||
cp -p scripts/* $dir/scripts
|
cp -p -r scripts/* $dir/scripts
|
||||||
cp -p scripts/ckeditor/* $dir/scripts/ckeditor
|
|
||||||
cp -p resources/* $dir/resources
|
cp -p resources/* $dir/resources
|
||||||
cp -p ssl/* $dir/ssl
|
cp -p ssl/* $dir/ssl
|
||||||
|
|
||||||
cp -p themes/default/* $dir/themes/default
|
cp -p themes/default/* $dir/themes/default
|
||||||
cp -p themes/default/icons/* $dir/themes/default/icons
|
cp -p themes/default/icons/* $dir/themes/default/icons
|
||||||
cp -p logbooks/demo/011108a.log $dir/logbooks/demo/
|
cp -p logbooks/demo/2001/011108a.log $dir/logbooks/demo/2001/
|
||||||
|
|
||||||
# create elog-x.xx.tar.gz file
|
# create elog-x.xx.tar.gz file
|
||||||
echo Creating archive...
|
echo Creating archive...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user