mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 11:31:01 +00:00
Merge commit 'tg/master'
This commit is contained in:
commit
6322c7ccad
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "psyclpc"]
|
||||
path = psyclpc
|
||||
url = git://git.tgbit.net/psyclpc
|
27
install.sh
27
install.sh
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user