Made elog compile and build on midas
This commit is contained in:
@@ -34,7 +34,7 @@ USE_LDAP = 0
|
||||
#############################################################
|
||||
|
||||
# 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
|
||||
IFLAGS = -kr -nut -i3 -l110
|
||||
|
||||
@@ -2,18 +2,6 @@
|
||||
#Usage: build [-n] <version> <release>
|
||||
#Build ELOG distribution
|
||||
|
||||
while( 1 )
|
||||
switch( "$1" )
|
||||
case -n:
|
||||
set noupdate
|
||||
case --:
|
||||
shift
|
||||
default:
|
||||
break
|
||||
endsw
|
||||
shift
|
||||
end
|
||||
|
||||
if ($#argv < 2) then
|
||||
echo "Usage: build <version> <release>"
|
||||
exit
|
||||
@@ -43,15 +31,9 @@ mkdir $dir/themes/default
|
||||
mkdir $dir/themes/default/icons
|
||||
mkdir $dir/logbooks/
|
||||
mkdir $dir/logbooks/demo
|
||||
mkdir $dir/logbooks/demo/2001
|
||||
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
|
||||
unalias cp
|
||||
cp -p src/*.c $dir/src
|
||||
@@ -68,14 +50,13 @@ cp -p elogd.plist $dir
|
||||
cp -p doc/* $dir/doc
|
||||
cp -p man/* $dir/man
|
||||
cp -p contrib/* $dir/contrib
|
||||
cp -p scripts/* $dir/scripts
|
||||
cp -p scripts/ckeditor/* $dir/scripts/ckeditor
|
||||
cp -p -r scripts/* $dir/scripts
|
||||
cp -p resources/* $dir/resources
|
||||
cp -p ssl/* $dir/ssl
|
||||
|
||||
cp -p themes/default/* $dir/themes/default
|
||||
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
|
||||
echo Creating archive...
|
||||
|
||||
Reference in New Issue
Block a user