#!/bin/sh
+set -o errexit
+
# First argument of this script is the package name
# Reading system configuration informations, functions and package versions.
source ../packages-list
# Applying patches (if any)
-apply_patches ${1} &&
+apply_patches ${1}
-cd ${LFS_TMP}/${1} &&
-make &&
-make install &&
-make installman &&
+cd ${LFS_TMP}/${1}
+make
+make install
+make installman
-cat > /usr/local/bin/hvgetdate << EOF &&
+cat > /usr/local/bin/hvgetdate << EOF
#!/bin/sh
# Time server informations:
getdate -adjust 1 600 \${NTP_HOST1} \${NTP_HOST2}
exit 0
EOF
-chmod 740 /usr/local/bin/hvgetdate &&
+chmod 740 /usr/local/bin/hvgetdate
# Adding fcron entry
string_add "# Run after five minutes of execution the first time, then run every hours" \
- /etc/fcron/fcrontab &&
+ /etc/fcron/fcrontab
string_add "@mail(false),first(5) 6h /usr/local/bin/hvgetdate" \
/etc/fcron/fcrontab
-# Return last error
exit $?