No longer re-create the targets when installing
This commit is contained in:
parent
5b22615c19
commit
f3a396e0c0
|
@ -112,6 +112,13 @@ while [ $# -gt 0 ]; do
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#install
|
||||||
|
if [ "$install" -eq 1 ]; then
|
||||||
|
$DEBUG $MKDIR -- "$instdir" || exit 2
|
||||||
|
$DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
#create
|
#create
|
||||||
$DEBUG $XSLTPROC -o "$target" "$XSL" "$source"
|
$DEBUG $XSLTPROC -o "$target" "$XSL" "$source"
|
||||||
#XXX ignore errors
|
#XXX ignore errors
|
||||||
|
@ -120,10 +127,4 @@ while [ $# -gt 0 ]; do
|
||||||
$RM -- "$target"
|
$RM -- "$target"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install
|
|
||||||
if [ "$install" -eq 1 ]; then
|
|
||||||
$DEBUG $MKDIR -- "$instdir" || exit 2
|
|
||||||
$DEBUG $INSTALL -- "$target" "$instdir/$target" || exit 2
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#$Id$
|
#$Id$
|
||||||
#Copyright (c) 2011 Pierre Pronchery <khorben@defora.org>
|
#Copyright (c) 2010-2012 Pierre Pronchery <khorben@defora.org>
|
||||||
#
|
#
|
||||||
#Redistribution and use in source and binary forms, with or without
|
#Redistribution and use in source and binary forms, with or without
|
||||||
#modification, are permitted provided that the following conditions are met:
|
#modification, are permitted provided that the following conditions are met:
|
||||||
|
@ -134,6 +134,15 @@ while [ $# -gt 0 ]; do
|
||||||
continue
|
continue
|
||||||
fi
|
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
|
#create
|
||||||
case "$target" in
|
case "$target" in
|
||||||
*.mo)
|
*.mo)
|
||||||
|
@ -149,12 +158,4 @@ while [ $# -gt 0 ]; do
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
esac
|
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
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user