Skip to content

Commit ecd26be

Browse files
committed
pub final uni17 & align pub scripts
1 parent 7f85b57 commit ecd26be

File tree

4 files changed

+91
-100
lines changed

4 files changed

+91
-100
lines changed

pub/copy-alpha-to-draft.sh

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# pub/copy-alpha-to-draft.sh ~/unitools/mine/src /tmp/unicode/Public/draft
77

88
UNICODETOOLS=$1
9-
DRAFT=$2
9+
DEST=$2
1010

1111
UNITOOLS_DATA=$UNICODETOOLS/unicodetools/data
1212

@@ -17,9 +17,9 @@ EMOJI_VER=17.0
1717

1818
TODAY=`date --iso-8601`
1919

20-
mkdir -p $DRAFT
20+
mkdir -p $DEST
2121

22-
cat > $DRAFT/sed-readmes.txt << eof
22+
cat > $DEST/sed-readmes.txt << eof
2323
s/COPY_YEAR/$COPY_YEAR/
2424
s/PUB_DATE/$TODAY/
2525
s/PUB_STATUS/draft/
@@ -29,35 +29,35 @@ s%PUBLIC_EMOJI%Public/draft/emoji%
2929
s%PUBLIC_UCD%Public/draft%
3030
eof
3131

32-
mkdir -p $DRAFT/ucd
33-
cp -r $UNITOOLS_DATA/ucd/dev/* $DRAFT/ucd
34-
rm -r $DRAFT/ucd/Unihan
35-
mv $DRAFT/ucd/version-ReadMe.txt $DRAFT/ReadMe.txt
32+
mkdir -p $DEST/ucd
33+
cp -r $UNITOOLS_DATA/ucd/dev/* $DEST/ucd
34+
rm -r $DEST/ucd/Unihan
35+
mv $DEST/ucd/version-ReadMe.txt $DEST/ReadMe.txt
3636

37-
mkdir -p $DRAFT/emoji
38-
cp $UNITOOLS_DATA/emoji/dev/* $DRAFT/emoji
37+
mkdir -p $DEST/emoji
38+
cp $UNITOOLS_DATA/emoji/dev/* $DEST/emoji
3939

40-
mkdir -p $DRAFT/idna
41-
cp $UNITOOLS_DATA/idna/dev/* $DRAFT/idna
40+
mkdir -p $DEST/idna
41+
cp $UNITOOLS_DATA/idna/dev/* $DEST/idna
4242

4343
# Fix permissions. Everyone can read, and search directories.
44-
chmod a+rX -R $DRAFT
44+
chmod a+rX -R $DEST
4545

4646
# Update the readmes in-place (-i) as set up above.
47-
find $DRAFT -name '*ReadMe.txt' | xargs sed -i -f $DRAFT/sed-readmes.txt
47+
find $DEST -name '*ReadMe.txt' | xargs sed -i -f $DEST/sed-readmes.txt
4848

4949
# Zip files for some types of data, after fixing permissions
50-
rm $DRAFT/ucd/UCD.zip
51-
(cd $DRAFT/ucd; zip -r UCD.zip *)
50+
rm $DEST/ucd/UCD.zip
51+
(cd $DEST/ucd; zip -r UCD.zip *)
5252

5353
# Cleanup
54-
rm $DRAFT/sed-readmes.txt
54+
rm $DEST/sed-readmes.txt
5555

56-
rm $DRAFT/alpha.zip
57-
(cd $DRAFT; zip -r alpha.zip *)
56+
rm $DEST/alpha.zip
57+
(cd $DEST; zip -r alpha.zip *)
5858

5959
echo "--------------------"
6060
echo "Copy files from elsewhere:"
61-
echo "- Unihan.zip to $DRAFT/ucd"
62-
echo "- alpha charts to $DRAFT/charts"
61+
echo "- Unihan.zip to $DEST/ucd"
62+
echo "- alpha charts to $DEST/charts"
6363

pub/copy-beta-to-draft.sh

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# pub/copy-beta-to-draft.sh ~/unitools/mine/src /tmp/unicode/Public/draft
77

88
UNICODETOOLS=$1
9-
DRAFT=$2
9+
DEST=$2
1010

1111
UNITOOLS_DATA=$UNICODETOOLS/unicodetools/data
1212

@@ -17,9 +17,9 @@ EMOJI_VER=17.0
1717

1818
TODAY=`date --iso-8601`
1919

20-
mkdir -p $DRAFT
20+
mkdir -p $DEST
2121

22-
cat > $DRAFT/sed-readmes.txt << eof
22+
cat > $DEST/sed-readmes.txt << eof
2323
s/COPY_YEAR/$COPY_YEAR/
2424
s/PUB_DATE/$TODAY/
2525
s/PUB_STATUS/draft/
@@ -29,55 +29,55 @@ s%PUBLIC_EMOJI%Public/draft/emoji%
2929
s%PUBLIC_UCD%Public/draft%
3030
eof
3131

32-
mkdir -p $DRAFT/ucd
33-
cp -r $UNITOOLS_DATA/ucd/dev/* $DRAFT/ucd
34-
rm -r $DRAFT/ucd/Unihan
35-
mv $DRAFT/ucd/version-ReadMe.txt $DRAFT/ReadMe.txt
32+
mkdir -p $DEST/ucd
33+
cp -r $UNITOOLS_DATA/ucd/dev/* $DEST/ucd
34+
rm -r $DEST/ucd/Unihan
35+
mv $DEST/ucd/version-ReadMe.txt $DEST/ReadMe.txt
3636

37-
mkdir -p $DRAFT/uca
38-
cp -r $UNITOOLS_DATA/uca/dev/* $DRAFT/uca
37+
mkdir -p $DEST/uca
38+
cp -r $UNITOOLS_DATA/uca/dev/* $DEST/uca
3939

40-
mkdir -p $DRAFT/emoji
41-
cp $UNITOOLS_DATA/emoji/dev/* $DRAFT/emoji
40+
mkdir -p $DEST/emoji
41+
cp $UNITOOLS_DATA/emoji/dev/* $DEST/emoji
4242

43-
mkdir -p $DRAFT/idna
44-
cp $UNITOOLS_DATA/idna/dev/* $DRAFT/idna
43+
mkdir -p $DEST/idna
44+
cp $UNITOOLS_DATA/idna/dev/* $DEST/idna
4545

46-
mkdir -p $DRAFT/security
47-
cp $UNITOOLS_DATA/security/dev/* $DRAFT/security
46+
mkdir -p $DEST/security
47+
cp $UNITOOLS_DATA/security/dev/* $DEST/security
4848

49-
mkdir -p $DRAFT/links
50-
cp $UNITOOLS_DATA/links/dev/* $DRAFT/links
49+
mkdir -p $DEST/links
50+
cp $UNITOOLS_DATA/links/dev/* $DEST/links
5151

5252
# Fix permissions. Everyone can read, and search directories.
53-
chmod a+rX -R $DRAFT
53+
chmod a+rX -R $DEST
5454

5555
# Update the readmes in-place (-i) as set up above.
56-
find $DRAFT -name '*ReadMe.txt' | xargs sed -i -f $DRAFT/sed-readmes.txt
56+
find $DEST -name '*ReadMe.txt' | xargs sed -i -f $DEST/sed-readmes.txt
5757

5858
# Zip files for some types of data, after fixing permissions
59-
rm $DRAFT/ucd/UCD.zip
60-
(cd $DRAFT/ucd; zip -r UCD.zip *)
59+
rm $DEST/ucd/UCD.zip
60+
(cd $DEST/ucd; zip -r UCD.zip *)
6161

62-
rm $DRAFT/uca/CollationTest.zip
63-
(cd $DRAFT/uca; zip -r CollationTest.zip CollationTest && rm -r CollationTest)
62+
rm $DEST/uca/CollationTest.zip
63+
(cd $DEST/uca; zip -r CollationTest.zip CollationTest && rm -r CollationTest)
6464

65-
rm $DRAFT/security/*.zip
66-
(cd $DRAFT/security; zip -r uts39-data-$UNI_VER.zip *)
65+
rm $DEST/security/*.zip
66+
(cd $DEST/security; zip -r uts39-data-$UNI_VER.zip *)
6767

6868
# Fix permissions again to catch the zip files
69-
chmod a+rX -R $DRAFT
69+
chmod a+rX -R $DEST
7070

7171
# Cleanup
72-
rm $DRAFT/sed-readmes.txt
72+
rm $DEST/sed-readmes.txt
7373

7474
# Zip file to deliver the whole set of data files
75-
rm $DRAFT/beta.zip
76-
(cd $DRAFT; zip -r beta.zip *)
75+
rm $DEST/beta.zip
76+
(cd $DEST; zip -r beta.zip *)
7777

7878
echo "--------------------"
7979
echo "Copy files from elsewhere:"
80-
echo "- Unihan.zip to $DRAFT/ucd"
81-
echo "- UCDXML files to $DRAFT/ucdxml"
82-
echo "- beta charts to $DRAFT/charts"
80+
echo "- Unihan.zip to $DEST/ucd"
81+
echo "- UCDXML files to $DEST/ucdxml"
82+
echo "- beta charts to $DEST/charts"
8383

pub/copy-final.sh

Lines changed: 23 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ DEST=$2
1111
UNITOOLS_DATA=$UNICODETOOLS/unicodetools/data
1212

1313
# Adjust the following for each year and version as needed.
14-
COPY_YEAR=2024
14+
COPY_YEAR=2025
1515
UNI_VER=17.0.0
1616
EMOJI_VER=17.0
1717

@@ -25,34 +25,26 @@ s/PUB_DATE/$TODAY/
2525
s/PUB_STATUS/final/
2626
s/UNI_VER/$UNI_VER/
2727
s/EMOJI_VER/$EMOJI_VER/
28-
29-
s%PUBLIC_EMOJI%Public/emoji/$EMOJI_VER%
28+
s%PUBLIC_EMOJI%Public/$UNI_VER/emoji%
3029
s%PUBLIC_UCD%Public/$UNI_VER%
3130
eof
3231

33-
mkdir -p $DEST/$UNI_VER/ucd
34-
mkdir -p $DEST/zipped/$UNI_VER
35-
cp -r $UNITOOLS_DATA/ucd/dev/* $DEST/$UNI_VER/ucd
36-
rm -r $DEST/$UNI_VER/ucd/Unihan
37-
mv $DEST/$UNI_VER/ucd/version-ReadMe.txt $DEST/$UNI_VER/ReadMe.txt
38-
mv $DEST/$UNI_VER/ucd/zipped-ReadMe.txt $DEST/zipped/$UNI_VER/ReadMe.txt
39-
40-
mkdir -p $DEST/UCA/$UNI_VER
41-
cp -r $UNITOOLS_DATA/uca/dev/* $DEST/UCA/$UNI_VER
32+
mkdir -p $DEST/ucd
33+
cp -r $UNITOOLS_DATA/ucd/dev/* $DEST/ucd
34+
rm -r $DEST/ucd/Unihan
35+
mv $DEST/ucd/version-ReadMe.txt $DEST/ReadMe.txt
4236

43-
mkdir -p $DEST/emoji/$EMOJI_VER
44-
cp $UNITOOLS_DATA/emoji/dev/* $DEST/emoji/$EMOJI_VER
37+
mkdir -p $DEST/uca
38+
cp -r $UNITOOLS_DATA/uca/dev/* $DEST/uca
4539

46-
mkdir -p $DEST/idna/$UNI_VER
47-
cp $UNITOOLS_DATA/idna/dev/* $DEST/idna/$UNI_VER
40+
mkdir -p $DEST/emoji
41+
cp $UNITOOLS_DATA/emoji/dev/* $DEST/emoji
4842

49-
mkdir -p $DEST/idna/idna2008derived
50-
rm $DEST/idna/idna2008derived/*
51-
cp $UNITOOLS_DATA/idna/idna2008derived/Idna2008-$UNI_VER.txt $DEST/idna/idna2008derived
52-
cp $UNITOOLS_DATA/idna/idna2008derived/ReadMe.txt $DEST/idna/idna2008derived
43+
mkdir -p $DEST/idna
44+
cp $UNITOOLS_DATA/idna/dev/* $DEST/idna
5345

54-
mkdir -p $DEST/security/$UNI_VER
55-
cp $UNITOOLS_DATA/security/dev/* $DEST/security/$UNI_VER
46+
mkdir -p $DEST/security
47+
cp $UNITOOLS_DATA/security/dev/* $DEST/security
5648

5749
# Fix permissions. Everyone can read, and search directories.
5850
chmod a+rX -R $DEST
@@ -61,14 +53,14 @@ chmod a+rX -R $DEST
6153
find $DEST -name '*ReadMe.txt' | xargs sed -i -f $DEST/sed-readmes.txt
6254

6355
# Zip files for some types of data, after fixing permissions
64-
rm $DEST/$UNI_VER/ucd/UCD.zip
65-
(cd $DEST/$UNI_VER/ucd; zip -r UCD.zip * && mv UCD.zip $DEST/zipped/$UNI_VER)
56+
rm $DEST/ucd/UCD.zip
57+
(cd $DEST/ucd; zip -r UCD.zip *)
6658

67-
rm $DEST/uca/$UNI_VER/CollationTest.zip
68-
(cd $DEST/uca/$UNI_VER; zip -r CollationTest.zip CollationTest && rm -r CollationTest)
59+
rm $DEST/uca/CollationTest.zip
60+
(cd $DEST/uca; zip -r CollationTest.zip CollationTest && rm -r CollationTest)
6961

70-
rm $DEST/security/$UNI_VER/*.zip
71-
(cd $DEST/security/$UNI_VER; zip -r uts39-data-$UNI_VER.zip *)
62+
rm $DEST/security/*.zip
63+
(cd $DEST/security; zip -r uts39-data-$UNI_VER.zip *)
7264

7365
# Fix permissions again to catch the zip files
7466
chmod a+rX -R $DEST
@@ -82,8 +74,7 @@ rm $DEST/final.zip
8274

8375
echo "--------------------"
8476
echo "Copy files from elsewhere:"
85-
echo "- Unihan.zip to $DEST/$UNI_VER/ucd"
86-
echo "- Unihan.zip to $DEST/zipped/$UNI_VER"
87-
echo "- UCDXML files to $DEST/$UNI_VER/ucdxml"
88-
echo "- final charts to $DEST/$UNI_VER/charts"
77+
echo "- Unihan.zip to $DEST/ucd"
78+
echo "- UCDXML files to $DEST/ucdxml"
79+
echo "- final charts to $DEST/charts"
8980

pub/copy-ucd-to-draft.sh

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# pub/copy-ucd-to-draft.sh ~/unitools/mine/src /tmp/unicode/Public/draft
77

88
UNICODETOOLS=$1
9-
DRAFT=$2
9+
DEST=$2
1010

1111
UNITOOLS_DATA=$UNICODETOOLS/unicodetools/data
1212

@@ -17,9 +17,9 @@ EMOJI_VER=17.0
1717

1818
TODAY=`date --iso-8601`
1919

20-
mkdir -p $DRAFT
20+
mkdir -p $DEST
2121

22-
cat > $DRAFT/sed-readmes.txt << eof
22+
cat > $DEST/sed-readmes.txt << eof
2323
s/COPY_YEAR/$COPY_YEAR/
2424
s/PUB_DATE/$TODAY/
2525
s/PUB_STATUS/draft/
@@ -29,29 +29,29 @@ s%PUBLIC_EMOJI%Public/draft/emoji%
2929
s%PUBLIC_UCD%Public/draft%
3030
eof
3131

32-
mkdir -p $DRAFT/ucd
33-
cp -r $UNITOOLS_DATA/ucd/dev/* $DRAFT/ucd
34-
rm -r $DRAFT/ucd/Unihan
35-
rm -r $DRAFT/ucd/emoji
36-
mv $DRAFT/ucd/version-ReadMe.txt $DRAFT/ReadMe.txt
32+
mkdir -p $DEST/ucd
33+
cp -r $UNITOOLS_DATA/ucd/dev/* $DEST/ucd
34+
rm -r $DEST/ucd/Unihan
35+
rm -r $DEST/ucd/emoji
36+
mv $DEST/ucd/version-ReadMe.txt $DEST/ReadMe.txt
3737

3838
# Fix permissions. Everyone can read, and search directories.
39-
chmod a+rX -R $DRAFT
39+
chmod a+rX -R $DEST
4040

4141
# Update the readmes in-place (-i) as set up above.
42-
find $DRAFT -name '*ReadMe.txt' | xargs sed -i -f $DRAFT/sed-readmes.txt
42+
find $DEST -name '*ReadMe.txt' | xargs sed -i -f $DEST/sed-readmes.txt
4343

4444
# Zip files for some types of data, after fixing permissions
45-
rm $DRAFT/ucd/UCD.zip
46-
(cd $DRAFT/ucd; zip -r UCD.zip *)
45+
rm $DEST/ucd/UCD.zip
46+
(cd $DEST/ucd; zip -r UCD.zip *)
4747

4848
# Cleanup
49-
rm $DRAFT/sed-readmes.txt
49+
rm $DEST/sed-readmes.txt
5050

51-
rm $DRAFT/ucd-snapshot.zip
52-
(cd $DRAFT; zip -r ucd-snapshot.zip *)
51+
rm $DEST/ucd-snapshot.zip
52+
(cd $DEST; zip -r ucd-snapshot.zip *)
5353

5454
echo "--------------------"
5555
echo "Copy files from elsewhere:"
56-
echo "- Unihan.zip to $DRAFT/ucd"
56+
echo "- Unihan.zip to $DEST/ucd"
5757

0 commit comments

Comments
 (0)