Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
Ocarina
Commits
cbd66d66
Commit
cbd66d66
authored
Mar 03, 2013
by
yoogx
Browse files
* Remove this script, now useless
parent
93a7925e
Changes
1
Hide whitespace changes
Inline
Side-by-side
autobuild.sh
deleted
100755 → 0
View file @
93a7925e
#! /bin/sh
# This script builds Ocarina automatically. It is used to regularly
# test the status of the source code.
TMP_FILE
=
`
mktemp
filXXXXXX
`
TMP_DIR
=
`
mktemp
-d
dirXXXXXX
`
echo
"SVN: reconfiguring..."
./support/reconfig
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in reconfig"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: configuring..."
./configure
$@
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in configure"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: light cleanup..."
make clean
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make clean"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: building..."
make
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: installation..."
make
install
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make install"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: full cleanup..."
make distclean
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make distclean"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: configuring 2..."
./configure
$@
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in configure 2"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: building distribution..."
make dist
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make dist"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"SVN: extract archive..."
tar
xzvf ocarina
*
.tar.gz
-C
${
TMP_DIR
}
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make dist"
cat
${
TMP_FILE
}
exit
${
s
}
fi
# Enter to the archive dir
cd
${
TMP_DIR
}
/ocarina
*
echo
"DIST: configuring..."
./configure
$@
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"DIST: problem in configure"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"DIST: building..."
make
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"DIST: problem in make"
cat
${
TMP_FILE
}
exit
${
s
}
fi
echo
"DIST: installation..."
make
install
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"DIST: problem in make install"
cat
${
TMP_FILE
}
exit
${
s
}
fi
cd
../..
# Rebuild the SVN copy
echo
"SVN: building 2..."
make
>
${
TMP_FILE
}
2>&1
s
=
$?
if
[
${
s
}
!=
0
]
;
then
echo
"SVN: problem in make 2"
cat
${
TMP_FILE
}
exit
${
s
}
fi
rm
-f
${
TMP_FILE
}
rm
-rf
${
TMP_DIR
}
exit
0
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment