mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Install scripts
This commit is contained in:
parent
e59da2346f
commit
7fb38f48ee
3 changed files with 15 additions and 14 deletions
14
build.sh
14
build.sh
|
|
@ -16,16 +16,16 @@
|
|||
export lazbuild=$(which lazbuild)
|
||||
|
||||
# Set up widgetset: gtk or gtk2 or qt
|
||||
# Set up processor architecture: i386 or x86_64
|
||||
if [ $2 ]
|
||||
then export lcl=$2
|
||||
fi
|
||||
if [ $lcl ]
|
||||
then export DC_ARCH=$(echo "--widgetset=$lcl $DC_ARCH")
|
||||
fi
|
||||
|
||||
# Set up processor architecture
|
||||
if [ $CPU_TARGET ]
|
||||
then export DC_ARCH=$(echo "--cpu=$CPU_TARGET $DC_ARCH")
|
||||
if [ $lcl ] && [ $CPU_TARGET ]
|
||||
then export DC_ARCH=$(echo "--widgetset=$lcl")" "$(echo "--cpu=$CPU_TARGET")
|
||||
elif [ $lcl ]
|
||||
then export DC_ARCH=$(echo "--widgetset=$lcl")
|
||||
elif [ $CPU_TARGET ]
|
||||
then export DC_ARCH=$(echo "--cpu=$CPU_TARGET")
|
||||
fi
|
||||
|
||||
build_default()
|
||||
|
|
|
|||
|
|
@ -42,8 +42,8 @@ while [ "$1" != "--" ]; do
|
|||
-S) shift;CK_SLACKWARE=1;;
|
||||
-P) shift;CK_PORTABLE=1;;
|
||||
-H) shift;CK_HELP=1;;
|
||||
--cpu) shift;CPU_TARGET=$(eval echo $1);shift;;
|
||||
--ws) shift;lcl=$(eval echo $1);shift;;
|
||||
--cpu) shift;export CPU_TARGET=$(eval echo $1);shift;;
|
||||
--ws) shift;export lcl=$(eval echo $1);shift;;
|
||||
esac
|
||||
done
|
||||
|
||||
|
|
@ -85,8 +85,8 @@ if [ "$CPU_TARGET" = "x86_64" ]
|
|||
fi
|
||||
|
||||
# Copy libraries
|
||||
cp -a linux/lib/$CPU_TARGET/*.so $BUILD_DC_TMP_DIR/
|
||||
cp -a linux/lib/$CPU_TARGET/$lcl/*.so $BUILD_DC_TMP_DIR/
|
||||
cp -a linux/lib/$CPU_TARGET/*.so* $BUILD_DC_TMP_DIR/
|
||||
cp -a linux/lib/$CPU_TARGET/$lcl/*.so* $BUILD_DC_TMP_DIR/
|
||||
|
||||
cd $BUILD_DC_TMP_DIR
|
||||
|
||||
|
|
@ -115,6 +115,7 @@ if [ "$CK_PORTABLE" ]; then
|
|||
# Create *.tar.bz2 package
|
||||
mkdir -p $BUILD_PACK_DIR
|
||||
install/linux/install.sh --portable-prefix=$BUILD_PACK_DIR
|
||||
cp -r doc/en $BUILD_PACK_DIR/doublecmd/doc
|
||||
cd $BUILD_PACK_DIR
|
||||
sed -i -e 's/<UseConfigInProgramDir>False/<UseConfigInProgramDir>True/' doublecmd/doublecmd.xml
|
||||
tar -cvjf $PACK_DIR/doublecmd-$DC_VER-1.$lcl.$CPU_TARGET.tar.bz2 doublecmd
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ if [ -z $CK_PORTABLE ]
|
|||
then
|
||||
# Copy libraries
|
||||
install -d $DC_INSTALL_PREFIX/$OS_LIB_DIR
|
||||
install -m 644 *.so $DC_INSTALL_PREFIX/$OS_LIB_DIR
|
||||
install -m 644 *.so* $DC_INSTALL_PREFIX/$OS_LIB_DIR
|
||||
# Create directory for platform independed files
|
||||
install -d $DC_INSTALL_PREFIX/usr/share/doublecmd
|
||||
# Copy documentation
|
||||
|
|
@ -130,7 +130,7 @@ if [ -z $CK_PORTABLE ]
|
|||
cp -r language $DC_INSTALL_DIR/
|
||||
cp -r pixmaps $DC_INSTALL_DIR/
|
||||
# Copy libraries
|
||||
cp -a *.so $DC_INSTALL_DIR/
|
||||
install -m 644 *.so* $DC_INSTALL_DIR/
|
||||
# Copy DC icon
|
||||
cp -a doublecmd.png $DC_INSTALL_DIR/doublecmd.png
|
||||
cp -a doublecmd.png $DC_INSTALL_DIR/doublecmd.png
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue