Révision | 5e80686e0496a5a52af5d3422ffe6d71baeb2427 (tree) |
---|---|
l'heure | 2004-09-12 00:13:51 |
Auteur | pukiwikiadmin <pukiwikiadmin> |
Commiter | pukiwikiadmin |
This commit was manufactured by cvs2svn to create tag 'r1_4_2'.
@@ -1,3 +0,0 @@ | ||
1 | -#!/bin/sh | |
2 | - | |
3 | -grep -B1 "^function" ../*.php | sed -e "s/^\.\.\///" | sed "s/[a-z]*\.php\:function[ \t]*//" |
@@ -1,92 +0,0 @@ | ||
1 | -#!/bin/sh | |
2 | -# $Id: release.sh,v 1.6 2004/09/07 12:57:27 henoheno Exp $ | |
3 | -# $CVSKNIT_Id: release.sh,v 1.11 2004/05/28 14:26:24 henoheno Exp $ | |
4 | -# Release automation script | |
5 | -# ========================================================== | |
6 | - Copyright='(C) 2002-2004 minix-up project, All Rights Reserved' | |
7 | - Homepage='http://cvsknit.sourceforge.net/' | |
8 | - License='BSD Licnese, NO WARRANTY' | |
9 | -# | |
10 | - | |
11 | -# Functions ----------------------------------------------- | |
12 | -warn(){ echo "$*" 1>&2 ; } | |
13 | -err() { warn "Error: $*" ; exit 1 ; } | |
14 | - | |
15 | -usage(){ | |
16 | - warn "USAGE: `basename $0` VERSION_TAG (1.4.3_rc1 like)" | |
17 | - return 1 | |
18 | -} | |
19 | - | |
20 | -# ------------------------------------------- | |
21 | -# Argument check | |
22 | - | |
23 | -rel="$1" | |
24 | -case "$rel" in | |
25 | - [1-9].[0-9] | [1-9].[0-9] ) tag="r$rel" ;; | |
26 | - [1-9].[0-9]_rc[1-9] | [1-9].[0-9]_rc[1-9] ) tag="r$rel" ;; | |
27 | - [1-9].[0-9].[0-9] | [1-9].[0-9].[0-9][0-9] ) tag="r$rel" ;; | |
28 | - [1-9].[0-9].[0-9]_rc[1-9] | [1-9].[0-9].[0-9][0-9]_rc[1-9] ) tag="r$rel" ;; | |
29 | - * ) usage ; exit ;; | |
30 | -esac | |
31 | -tag="` echo "$tag" | tr '.' '_' `" | |
32 | - | |
33 | -# ------------------------------------------- | |
34 | -# Default | |
35 | - | |
36 | -mod=pukiwiki | |
37 | -CVSROOT=":pserver:anonymous@cvs.sourceforge.jp:/cvsroot/$mod" | |
38 | - | |
39 | -pkg_dir="${mod}-${rel}" | |
40 | - | |
41 | -# ------------------------------------------- | |
42 | - | |
43 | -# Checkout the module | |
44 | -test ! -d "$pkg_dir" || err "There's already a directory: $mod" | |
45 | -echo cvs -z3 -d "$CVSROOT" export -r "$tag" -d "$pkg_dir" "$mod" | |
46 | - cvs -z3 -d "$CVSROOT" export -r "$tag" -d "$pkg_dir" "$mod" | |
47 | -test -d "$pkg_dir" || err "There is'nt a directory: $pkg_dir" | |
48 | - | |
49 | - | |
50 | -# Remove '.cvsignore' if exists | |
51 | -echo find "$pkg_dir" -type f -name '.cvsignore' -delete | |
52 | - find "$pkg_dir" -type f -name '.cvsignore' -delete | |
53 | - | |
54 | -# chmod | |
55 | -( cd "$pkg_dir" | |
56 | - | |
57 | - # ALL: Read only | |
58 | - find . -type d | while read line; do | |
59 | - chmod 755 "$line" | |
60 | - done | |
61 | - find . -type f | while read line; do | |
62 | - chmod 644 "$line" | |
63 | - done | |
64 | - | |
65 | - # Add write permission for PukiWiki | |
66 | - chmod 777 attach backup cache counter diff trackback wiki* | |
67 | - chmod 666 wiki*/*.txt cache/*.dat | |
68 | - | |
69 | -) | |
70 | - | |
71 | -# Compress | |
72 | -( cd "$pkg_dir" | |
73 | - | |
74 | - # wiki.en/ | |
75 | - tar cf - wiki.en | gzip -9 > wiki.en.tgz | |
76 | - rm -Rf wiki.en | |
77 | - | |
78 | - gzip -9 *.en.txt | |
79 | - | |
80 | -) | |
81 | - | |
82 | -# Tar | |
83 | -echo tar cf - "$pkg_dir" \| gzip -9 \> "$pkg_dir.tar.gz" | |
84 | - tar cf - "$pkg_dir" | gzip -9 > "$pkg_dir.tar.gz" | |
85 | - | |
86 | -# Zip | |
87 | -echo zip -r9 "$pkg_dir.zip" "$pkg_dir" | |
88 | - zip -r9 "$pkg_dir.zip" "$pkg_dir" | |
89 | - | |
90 | -#echo rm -Rf "$pkg_dir" | |
91 | -# rm -Rf "$pkg_dir" | |
92 | - |