mirror of
https://github.com/ChronosX88/psyced.git
synced 2024-11-08 19:41:00 +00:00
install.sh can be now run from the git repo
This commit is contained in:
parent
2646840a52
commit
6195215f83
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 ""
|
||||||
echo "${hi}PSYCED INSTALLATION WIZARD${lo}"
|
echo "${hi}PSYCED INSTALLATION WIZARD${lo}"
|
||||||
|
|
||||||
if ! test -e data.tar
|
if ! test -e data.tar && ! test -d .git
|
||||||
then
|
then
|
||||||
cat <<X
|
cat <<X
|
||||||
This installation script is designed to work with an image of the current
|
This installation script is designed to work with an image of the current
|
||||||
@ -186,7 +186,10 @@ fi
|
|||||||
#get WITHOUT_DRIVER "n"
|
#get WITHOUT_DRIVER "n"
|
||||||
WITHOUT_DRIVER="n"
|
WITHOUT_DRIVER="n"
|
||||||
echo ""
|
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
|
then
|
||||||
echo "${hi}ATTENTION:${lo} you've got more than one ${driver}-*tar.${zip}"
|
echo "${hi}ATTENTION:${lo} you've got more than one ${driver}-*tar.${zip}"
|
||||||
echo "in this directory. Please tidy up before continuing!"
|
echo "in this directory. Please tidy up before continuing!"
|
||||||
@ -1122,7 +1125,19 @@ fi
|
|||||||
|
|
||||||
echo "Extracting psyced data..."
|
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
|
then
|
||||||
:
|
:
|
||||||
else
|
else
|
||||||
@ -1153,7 +1168,10 @@ then
|
|||||||
echo ""
|
echo ""
|
||||||
echo "${hi}COMPILING ${driver}${lo}"
|
echo "${hi}COMPILING ${driver}${lo}"
|
||||||
echo ""
|
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 ""
|
||||||
echo "Extracting $driver source..."
|
echo "Extracting $driver source..."
|
||||||
echo ""
|
echo ""
|
||||||
@ -1345,4 +1363,3 @@ then
|
|||||||
echo ""
|
echo ""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user