Fix build system
This commit is contained in:
parent
fa1162a88c
commit
974fe1f618
@ -23,7 +23,7 @@ case $1 in
|
|||||||
mv -v $SRC_DIR/glacier $PREFIX
|
mv -v $SRC_DIR/glacier $PREFIX
|
||||||
printf "directory $PREFIX/bin does not exist, moving to $PREFIX instead\n"
|
printf "directory $PREFIX/bin does not exist, moving to $PREFIX instead\n"
|
||||||
fi
|
fi
|
||||||
CC $SRC_DIR/int-check/main.c -o glacier-integrity-check
|
$CC $SRC_DIR/int-check/main.c -o glacier-integrity-check
|
||||||
mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX/bin
|
mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX/bin
|
||||||
if [ "$?" != 0 ]; then
|
if [ "$?" != 0 ]; then
|
||||||
mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX
|
mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX
|
||||||
@ -64,8 +64,9 @@ case $1 in
|
|||||||
printf "updating executable\n"
|
printf "updating executable\n"
|
||||||
rm -v $PREFIX/bin/glacier || rm -v $PREFIX/glacier
|
rm -v $PREFIX/bin/glacier || rm -v $PREFIX/glacier
|
||||||
rm -v $PREFIX/bin/glacier-integrity-check || rm -v $PREFIX/glacier-integrity-check
|
rm -v $PREFIX/bin/glacier-integrity-check || rm -v $PREFIX/glacier-integrity-check
|
||||||
mv -v $SRC_DIR/glacier $PREFIX || mv -v $SRC_DIR/glacier $PREFIX/bin
|
mv -v $SRC_DIR/glacier $PREFIX/bin || mv -v $SRC_DIR/glacier $PREFIX
|
||||||
mv -v $SRC_DIR/glacier-integrity-check $PREFIX || mv -v $SRC_DIR/glacier-integrity-check $PREFIX/bin
|
$CC $SRC_DIR/int-check/main.c -o glacier-integrity-check
|
||||||
|
mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX/bin || mv -v $SRC_DIR/int-check/glacier-integrity-check $PREFIX
|
||||||
printf "finished updating\n"
|
printf "finished updating\n"
|
||||||
exit 0
|
exit 0
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user