Finalise installation X.org, reste a tester...
[hvlinux.git] / stage3 / cis-espgs
index 656f9d0..2e7990c 100755 (executable)
@@ -1,4 +1,6 @@
 #!/bin/sh
+set -o errexit
+
 # First argument of this script is the package name.
 
 # Reading system configuration informations, functions and package versions.
@@ -7,46 +9,45 @@ source ../functions
 source ../packages-list
 
 # Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
 
 GS_FONTS_PATH="${HV_FONTS_PATH}/ghostscript"
 
 # Unpack all the fonts to ${GS_FONTS_PATH}
-install -v -m755 -d ${GS_FONTS_PATH} &&
-decompress_package ${GHOSTSCRIPT_FONTS_STD} &&
-decompress_package ${GHOSTSCRIPT_FONTS_OTHER} &&
-mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH} &&
-rmdir ${LFS_TMP}/fonts &&
-chown -v -R root:root ${GS_FONTS_PATH} &&
-
-cd ${LFS_TMP}/${1} &&
-sed -i "s/bbox.dev$/x11.dev/" Makefile.in &&
+install -v -m755 -d ${GS_FONTS_PATH}
+decompress_package ${GHOSTSCRIPT_FONTS_STD}
+decompress_package ${GHOSTSCRIPT_FONTS_OTHER}
+mv ${LFS_TMP}/fonts/* ${GS_FONTS_PATH}
+rmdir ${LFS_TMP}/fonts
+chown -v -R root:root ${GS_FONTS_PATH}
+
+cd ${LFS_TMP}/${1}
+sed -i "s/bbox.dev$/x11.dev/" Makefile.in
 ./configure \
     --prefix=/usr \
     --enable-threads \
     --without-omni \
-    --with-fontpath=${GS_FONTS_PATH} &&
-make &&
-make install &&
-#rmdir -v /usr/lib/ghostscript/$(get_pkg_ver_base ${1}) /usr/lib/ghostscript &&
-ln -v -s ../ghostscript/$(get_pkg_ver_base ${1})/doc /usr/share/doc/${1} &&
+    --with-fontpath=${GS_FONTS_PATH}
+make
+make install
+#rmdir -v /usr/lib/ghostscript/$(get_pkg_ver_base ${1}) /usr/lib/ghostscript
+ln -v -s ../ghostscript/$(get_pkg_ver_base ${1})/doc /usr/share/doc/${1}
 for INSTFILE in `ls doc`; do
     if [ ! -f /usr/share/doc/${1}/${INSTFILE} ]; then
        install -v -m644 doc/${INSTFILE} /usr/share/doc/${1}/
     fi
-done &&
+done
 
 # Checking if X is installed...
 if [ -d /usr/X11R6 ]; then
     # Adding our local fonts directory to local configuration file
     sed -i -e "s!^</fontconfig>!<dir>${GS_FONTS_PATH}</dir>\n</fontconfig>!" \
-       /etc/fonts/local.conf &&
+       /etc/fonts/local.conf
     
     # Updating fonts cache database.
     fc-cache -f
-fi &&
+fi
 
 ldconfig
 
-# Return last error
 exit $?