-carnet-tools-cn (2.4.1) testing; urgency=low
+carnet-tools-cn (2.4) testing; urgency=low
+ * Kozmeticke ispravke.
+ * Dodana cp_check_and_backup funkcija.
* Ispravak buga funkcije cp_check_and_sed (ako pukne sed, datoteka
ostane prazna)
* Funkcija cp_check_and_sed se prekida ako nedostaju potrebni argumenti
-- Ivan 'ico' Rako <irako@srce.hr> Mon, 6 Jun 2005 12:01:43 +0200
-carnet-tools-cn (2.4) testing; urgency=low
-
- * Kozmeticke ispravke.
- * Dodana cp_check_and_backup funkcija.
-
carnet-tools-cn (2.3.1) testing; urgency=low
* dodana ovisnost o mail-transport-agent i sed
[ "$CP_SCRIPT_DEBUG" ] && set -vx
local s sedcmd grepret ret i
if [ -z "$3" ]; then
- echo "Usage: cp_check_and_sed <regexp> <sed> <file> [file ...]" 2>&1
return 1
fi
s="$1"
fi
[ -h "$i" ] && i=$(readlink -f "$i")
sed "$sedcmd" "$i" > "$i.dpkg-tmp"
- if [ ! "$?" = "0" ]; then
+ if [ $? -ne 0 ]; then
rm "$i.dpkg-tmp"
echo "cp_check_and_sed: Problem with sed" 1>&2
return 5