1
0
Fork 0
mirror of git://git.psyced.org/git/psyced synced 2024-08-15 03:25:10 +00:00

Merge commit 'tg/master'

This commit is contained in:
psyc://psyced.org/~lynX 2011-06-18 21:12:02 +02:00
commit 6322c7ccad
2 changed files with 25 additions and 5 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "psyclpc"]
path = psyclpc
url = git://git.tgbit.net/psyclpc

View file

@ -172,7 +172,7 @@ echo ""
echo ""
echo "${hi}PSYCED INSTALLATION WIZARD${lo}"
if ! test -e data.tar
if ! test -e data.tar && ! test -d .git
then
cat <<X
This installation script is designed to work with an image of the current
@ -186,7 +186,10 @@ fi
#get WITHOUT_DRIVER "n"
WITHOUT_DRIVER="n"
echo ""
if test `ls -1 ${driver}-*tar.${zip} 2>/dev/null |wc -l` -gt 1
if test -d .git
then
:
elif test `ls -1 ${driver}-*tar.${zip} 2>/dev/null |wc -l` -gt 1
then
echo "${hi}ATTENTION:${lo} you've got more than one ${driver}-*tar.${zip}"
echo "in this directory. Please tidy up before continuing!"
@ -1124,7 +1127,19 @@ fi
echo "Extracting psyced data..."
if tar xf data.tar -C $BASE_DIR
if test -d .git
then
if ! test `realpath .` = $BASE_DIR
then
if git clone . $BASE_DIR && cp -a .git/config $BASE_DIR/.git
then
:
else
echo "Could not git clone. abort."
$exit
fi
fi
elif tar xf data.tar -C $BASE_DIR
then
:
else
@ -1155,7 +1170,10 @@ then
echo ""
echo "${hi}COMPILING ${driver}${lo}"
echo ""
if test `ls -d1 */src 2>/dev/null |wc -l` -lt 1; then
if test -d .git; then
git submodule init
git submodule update
elif test `ls -d1 */src 2>/dev/null |wc -l` -lt 1; then
echo ""
echo "Extracting $driver source..."
echo ""
@ -1347,4 +1365,3 @@ then
echo ""
fi
fi