From f3a396e0c0d83f5932b67ef9a0e217be17fcc47d Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sun, 10 Jun 2012 00:13:31 +0000 Subject: [PATCH] No longer re-create the targets when installing --- doc/docbook.sh | 13 +++++++------ po/gettext.sh | 19 ++++++++++--------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/doc/docbook.sh b/doc/docbook.sh index 78c891b..977c34a 100755 --- a/doc/docbook.sh +++ b/doc/docbook.sh @@ -112,6 +112,13 @@ while [ $# -gt 0 ]; do continue fi + #install + if [ "$install" -eq 1 ]; then + $DEBUG $MKDIR -- "$instdir" || exit 2 + $DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2 + continue + fi + #create $DEBUG $XSLTPROC -o "$target" "$XSL" "$source" #XXX ignore errors @@ -120,10 +127,4 @@ while [ $# -gt 0 ]; do $RM -- "$target" break fi - - #install - if [ "$install" -eq 1 ]; then - $DEBUG $MKDIR -- "$instdir" || exit 2 - $DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2 - fi done diff --git a/po/gettext.sh b/po/gettext.sh index 2e90b3a..8232897 100755 --- a/po/gettext.sh +++ b/po/gettext.sh @@ -1,6 +1,6 @@ #!/bin/sh #$Id$ -#Copyright (c) 2011 Pierre Pronchery +#Copyright (c) 2010-2012 Pierre Pronchery # #Redistribution and use in source and binary forms, with or without #modification, are permitted provided that the following conditions are met: @@ -134,6 +134,15 @@ while [ $# -gt 0 ]; do continue fi + #install + if [ "$install" -eq 1 ]; then + $DEBUG $MKDIR "$LOCALEDIR/$lang/LC_MESSAGES" || exit 2 + $DEBUG $INSTALL "$target" \ + "$LOCALEDIR/$lang/LC_MESSAGES/$PACKAGE.mo" \ + || exit 2 + continue + fi + #create case "$target" in *.mo) @@ -149,12 +158,4 @@ while [ $# -gt 0 ]; do exit 2 ;; esac - - #install - if [ "$install" -eq 1 ]; then - $DEBUG $MKDIR "$LOCALEDIR/$lang/LC_MESSAGES" || exit 2 - $DEBUG $INSTALL "$target" \ - "$LOCALEDIR/$lang/LC_MESSAGES/$PACKAGE.mo" \ - || exit 2 - fi done