null+****@clear*****
null+****@clear*****
2012年 5月 29日 (火) 14:19:39 JST
Kouhei Sutou 2012-05-29 14:19:39 +0900 (Tue, 29 May 2012)
New Revision: 712e00d6d026c4ea00cab51c23df75a090c551e4
Log:
apt: pass repositories/ via arguments
Modified files:
packages/apt/Makefile.am
packages/apt/sign-repository.sh
Modified: packages/apt/Makefile.am (+1 -1)
===================================================================
--- packages/apt/Makefile.am 2012-05-29 11:02:16 +0900 (a66b837)
+++ packages/apt/Makefile.am 2012-05-29 14:19:39 +0900 (3fc8ab9)
@@ -37,7 +37,7 @@ update-repository:
'$(ARCHITECTURES)' '$(CODES)'
sign-repository:
- ./sign-repository.sh '$(GPG_UID)' '$(CODES)'
+ ./sign-repository.sh '$(GPG_UID)' '$(REPOSITORIES_PATH)/' '$(CODES)'
upload: ensure-rsync-path
for distribution in $(DISTRIBUTIONS); do \
Modified: packages/apt/sign-repository.sh (+5 -4)
===================================================================
--- packages/apt/sign-repository.sh 2012-05-29 11:02:16 +0900 (88aef5a)
+++ packages/apt/sign-repository.sh 2012-05-29 14:19:39 +0900 (34969a8)
@@ -3,13 +3,14 @@
script_base_dir=`dirname $0`
if [ $# != 2 ]; then
- echo "Usage: $0 GPG_UID CODES"
- echo " e.g.: $0 'F10399C0' 'lenny unstable hardy karmic'"
+ echo "Usage: $0 GPG_UID DESTINATION CODES"
+ echo " e.g.: $0 'F10399C0' repositories/ 'lenny unstable hardy karmic'"
exit 1
fi
GPG_UID=$1
-CODES=$2
+DESTINATION=$2
+CODES=$3
run()
{
@@ -30,7 +31,7 @@ for code_name in ${CODES}; do
;;
esac
- release=repositories/${distribution}/dists/${code_name}/Release
+ release=${DESTINATION}${distribution}/dists/${code_name}/Release
rm -f ${release}.gpg
gpg2 --sign --detach-sign --armor \
--local-user ${GPG_UID} \