head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.20 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.18 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.16 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.14 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.12 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.4.0.10 pkgsrc-2008Q4-base:1.4 pkgsrc-2008Q3:1.4.0.8 pkgsrc-2008Q3-base:1.4 cube-native-xorg:1.4.0.6 cube-native-xorg-base:1.4 pkgsrc-2008Q2:1.4.0.4 pkgsrc-2008Q2-base:1.4 pkgsrc-2008Q1:1.4.0.2 pkgsrc-2008Q1-base:1.4 pkgsrc-2007Q4:1.3.0.8 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.6 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.4 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.2 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.1.1.0.2 pkgsrc-2005Q4-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.4 date 2008.02.11.23.28.46; author heinz; state dead; branches; next 1.3; 1.3 date 2007.01.14.16.25.25; author wiz; state Exp; branches; next 1.2; 1.2 date 2006.02.11.17.24.17; author heinz; state Exp; branches; next 1.1; 1.1 date 2005.11.25.01.48.02; author heinz; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.25.01.48.02; author heinz; state Exp; branches; next ; desc @@ 1.4 log @Updated to version 1.12. Pkgsrc changes: - The packages supports installation to DESTDIR. - No more requirement for coreutils/findutils and patch-ab. - Switched to predefined REPLACE_SH instead of using subst.mk directly. - Cosmetic changes for MAKEFLAGS. - The shell script mk/check/check-portability.sh gets confused by some of the file names in the test archive: skip them. - Extracting files from testsuite.tar often fails on Darwin (with HFS?) so we skip this part. - Extract test archive with pax, it is available on every pkgsrc system. - Submitted patch-aa to author of convmv long ago. Changes since version 1.10: =========================== 1.12 - now work with Perl 5.10 using an eval block - GPL v2 and v3 now 1.11 - test suite compares sorted results of find to fix false alarms on some systems - test suite now uses tar instead of cp for copying. - fix a y/n mixup - at startup we check if Perl::Encode is not too broken (bugs 37757 and 49830 for now). Recent Perl releases are terribly broken. If this won't improve, I'll have to rewrite convmv in a language with more stable core functionality :-|. If you are distributor of convmv, please run make test before packaging to make sure you don't ship convmv with a broken Perl release. @ text @$NetBSD: patch-ab,v 1.3 2007/01/14 16:25:25 wiz Exp $ --- suite/dotests.sh.orig 2006-06-25 22:01:16.000000000 +0000 +++ suite/dotests.sh @@@@ -1,13 +1,21 @@@@ #!/bin/sh # this requires GNU find to be used because of -printf feature # you might want to change this to GNU find's full path: -FIND=find +FIND=${CONVMV_FIND} FINDEXP="%P -- %l\n" -for dir in `ls -d test*` ; do $FIND $dir/ -printf "$FINDEXP" > out-$dir ; done +# make this overridable on non-GNU systems which may have those commands +# as gls and gcp +CONVMV_LS=${CONVMV_LS:-ls} +CONVMV_CP=${CONVMV_CP:-cp} + +# to get 0777 permissions for symlinks on non-Linux systems +umask 0 + +for dir in `${CONVMV_LS} -d test*` ; do $FIND $dir/ -printf "$FINDEXP" > out-$dir ; done # echo smartness-test rm -rf test.tmp -cp -r test test.tmp +${CONVMV_CP} -r test test.tmp ../convmv -f iso8859-15 -t utf8 --notest -r test.tmp false $FIND test.tmp -printf "$FINDEXP" > out.tmp @@@@ -24,21 +32,21 @@@@ diff out-test out.tmp > diff.tmp|| { ech # echo utf8-to-iso8859-15-test rm -r test.tmp -cp -r test test.tmp +${CONVMV_CP} -r test test.tmp ../convmv -f utf8 -t iso8859-15 --notest -r test.tmp $FIND test.tmp -printf "$FINDEXP" > out.tmp diff out-test-iso8859-15 out.tmp > diff.tmp|| { echo utf8-to-iso8859-15-test failed. ; exit 1; } # echo iso8859-15-to-utf8-test rm -r test.tmp -cp -r test-iso8859-15 test.tmp +${CONVMV_CP} -r test-iso8859-15 test.tmp ../convmv -f iso8859-15 -t utf8 --notest -r test.tmp $FIND test.tmp -printf "$FINDEXP" > out.tmp diff out-test out.tmp > diff.tmp|| { echo iso8859-15-to-utf8-test failed. ; exit 1; } # echo nfc-test rm -r test.tmp -cp -r test test.tmp +${CONVMV_CP} -r test test.tmp ../convmv -f utf-8 -t utf-8 --nfd --notest -r test.tmp $FIND test.tmp -printf "$FINDEXP" > out.tmp diff out-test-nfd out.tmp > diff.tmp|| { echo nfd-test failed. ; exit 1; } @@@@ -49,14 +57,14 @@@@ diff out-test out.tmp > diff.tmp|| { ech # echo escaped-test rm -r test.tmp -cp -r test-escaped test.tmp +${CONVMV_CP} -r test-escaped test.tmp ../convmv --unescape --notest -r test.tmp $FIND test.tmp -printf "$FINDEXP" > out.tmp diff out-test out.tmp > diff.tmp|| { echo escaped-test failed. ; exit 1; } # echo upper-test rm -r test.tmp -cp -r test test.tmp +${CONVMV_CP} -r test test.tmp ../convmv --upper -f utf8 --notest -r test.tmp $FIND TEST.TMP -printf "$FINDEXP" > out.tmp diff out-test-upper out.tmp > diff.tmp|| { echo upper-test failed. ; exit 1; } @ 1.3 log @Update to 1.10: 1.10 - now use from_to instead of utf8::decode (which is experimental and might vanish in the future) to check for valid UTF-8 - updates and cleanups of testsuite and include "0" filename - fix "0" filename bugs - take into account that charset name "utf-8" resolves to "utf-8-strict" in recent Perl versions @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2006/02/11 17:24:17 heinz Exp $ @ 1.2 log @Updated to version 1.09. Pkgsrc changes: - Used an absolute path for SUBST_FILES previously, which was wrong. Changes since version 1.08: ==================================== 1.09 - work around broken decode_utf8() in Perl 5.8.7 resp. Encode 2.10 (use utf8::decode instead) - adapt test suite to catch cases like this - warn about dry test run at start, not just at end of a test run @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.1.1.1 2005/11/25 01:48:02 heinz Exp $ d3 1 a3 1 --- suite/dotests.sh.orig Fri Dec 9 17:11:46 2005 d5 1 a5 1 @@@@ -1,77 +1,86 @@@@ d7 6 a12 2 -for d in `ls -d test*` ; do cd $d ; ls -R -g -G --time-style=+ >../out-$d ; cd .. ; done + d21 1 a21 1 +for d in `${CONVMV_LS} -d test*` ; do cd $d ; ${CONVMV_LS} -R -g -G --time-style=+ >../out-$d ; cd .. ; done d24 7 a30 26 rm -rf test2 -cp -a test test2 +${CONVMV_CP} -a test test2 ../convmv -f iso8859-15 -t utf8 --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test out2 || { echo "smartness-test failed." ; exit 1; } # echo double-utf8 test ../convmv -f iso8859-15 -t utf8 --notest -r --nosmart test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. pwd diff out-test-utf8 out2 || { echo "double-utf8 test failed." ; exit 1; } # ../convmv -f utf8 -t iso8859-15 --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. pwd diff out-test out2 || { echo undo-double-utf8 test failed. ; exit 1; } d33 6 a38 9 rm -r test2 -cp -a test test2 +${CONVMV_CP} -a test test2 ../convmv -f utf8 -t iso8859-15 --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test-iso8859-15 out2 || { echo utf8-to-iso8859-15-test failed. ; exit 1; } d41 6 a46 9 rm -r test2 -cp -a test-iso8859-15 test2 +${CONVMV_CP} -a test-iso8859-15 test2 ../convmv -f iso8859-15 -t utf8 --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test out2 || { echo iso8859-15-to-utf8-test failed. ; exit 1; } d49 7 a55 16 rm -r test2 -cp -a test test2 +${CONVMV_CP} -a test test2 ../convmv -f utf8 -t utf8 --nfd --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test-nfd out2 || { echo nfd-test failed. ; exit 1; } # ../convmv -f utf8 -t utf8 --nfc --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test out2 || { echo nfc-test failed. ; exit 1; } d58 14 a71 20 rm -r test2 -cp -a test-escaped test2 +${CONVMV_CP} -a test-escaped test2 ../convmv --unescape --notest -r test2 cd test2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. diff out-test out2 || { echo escaped-test failed. ; exit 1; } # rm -r test2 -cp -a test test2 +${CONVMV_CP} -a test test2 ../convmv --upper -f utf8 --notest -r test2 cd TEST2 -ls -R -g -G --time-style=+ >../out2 +${CONVMV_LS} -R -g -G --time-style=+ >../out2 cd .. rm -r TEST2 diff out-test-upper out2 || { echo upper-test failed. ; exit 1; } @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 --- suite/dotests.sh.orig Sun Dec 14 05:56:54 2003 d5 1 a5 1 @@@@ -1,63 +1,72 @@@@ d19 1 d30 1 d47 1 d56 1 a56 1 diff out-test-iso8859-15 out2 || { echo iso8859-15-test failed. ; exit 1; } d58 12 d87 1 @ 1.1.1.1 log @Initial import of convmv-1.08. Convmv is meant to help convert a single filename, a directory tree and the contained files or a whole filesystem into a different encoding. It just converts the filenames, not the content of the files. A special feature of convmv is that it also converts the symlink target pointer in case the symlink target is being converted, too. @ text @@