ain@j.cc.purdue.edu.UUCP (05/21/88)
Submitted by: FATQW@USU.BITNET (Bryan Ford) Summary: renames and pulls files out of subdirectories, and writes an execute file to undo it's actions -- for use with arc. Poster Boy: Patrick White (ain@j.cc.purdue.edu) Archive Name: binaries/amiga/volume6/makearc.sh.Z Tested. NOTES: It works. -- Pat White (co-moderator comp.sources/binaries.amiga) ARPA/UUCP: j.cc.purdue.edu!ain BITNET: PATWHITE@PURCCVM PHONE: (317) 743-8421 U.S. Mail: 320 Brown St. apt. 406, West Lafayette, IN 47906 ======================================== # This is a shell archive. # Remove everything above and including the cut line. # Then run the rest of the file through sh. #----cut here-----cut here-----cut here-----cut here----# #!/bin/sh # shar: Shell Archiver # Run the following text with /bin/sh to create: # MakeARC.doc # MakeARC.uu # This archive created: Tue Feb 16 20:57:20 1988 echo shar: extracting MakeARC.doc sed 's/^XX//' << \SHAR_EOF > MakeARC.doc XX XX MakeARC XX Copyright ) 1988 by Bryan Ford XX Documentation XX XX MakeARC is a program I wrote to fix the two main drawbacks of ARC: No XXsubdirectories, and short filenames only. What it does is searches through XXan entire disk and directory, renames all the files to names like XFile.1, XXXFile.2, etc., takes them out of any subdirectories they might be in, XXdeletes the subdirectories, and at the same time, creates a file called XXEXECUTE.ME containing all the information necessary to restore the XXdirectory to its original form. XX To use it, simply type "MakeARC <directory>" where <directory> is the XXname of a directory or volume to use. When it completes, you will have one XX"EXECUTE.ME" file and a bunch of "XFile.####" files. The person receiving XXthe archive can then just unARC the file into a subdirectory and type XX"EXECUTE EXECUTE.ME" to rebuild the original file structure. Also, a XXREAD.ME file is written which tells how to rebuild the structure. XX There are two things to be aware of. First, if you have a file called XXEXECUTE.ME in the directory you passed to MakeARC, it will get overwritten. XXFiles with this name in subdirectories will stay intact. Second, files XXbeginning with "XFile." will not be seen, because MakeARC has to skip over XXfiles it has already generated, and it thinks that all files with this XXbeginning are files it generated. XX MakeARC does no file copying - it simply renames the files. This means XXthat file comments, time, and other attributes will be saved. If, for some XXreason, it can't rename a file, it will display "Warning: Can't rename XX<file>." if the file is in a subdirectory, you will also get a warning XXstating that it can't delete the subdirectory, because it's not empty. The XXfile will simply be ignored by MakeARC. XX MakeARC requires very little room on the disk to operate. The only XXextra space needed is space for the EXECUTE.ME and READ.ME files. This XXwill usually be only a few blocks, so unless your disk is 99% full, MakeARC XXwill probably succeed. XX For EXECUTE.ME files to execute correctly, there are several files that XXmust be in the c: directory: MakeDir, Rename, Run, Delete, and Echo. If XXEcho is not present you will simply get a "unknown command echo" instead of XXthe usual messages "Extracting..." and "Done." The other commands are XXrequired for it to operate correctly. Of course, Execute must be in the c: XXdirectory to execute EXECUTE.ME. XX One switch is allowed, -n, which must be in lowercase, and must come XXafter the pathname. If you include it, no READ.ME file will be generated, XXand no instruction for deleting it will be put into the EXECUTE.ME file. XXThis will also happen if there is not enough room on the disk for the XXREAD.ME file (which will be rare, as it only takes 2 blocks). This file XXsimply tells how to rebuild the file structure. XX This program can handle a maximum of 9999 files. I haven't tested it XXwith more than this - if you find this a serious limit please contact me. XX This program is being distributed as Shareware. If you use it and like XXit, a small contribution would be deeply appreciated. In any case, you are XXencouraged to copy and share this program, as long as you supply the XXprogram and its documentation in its original form. I can be reached for XXcomments, inquiries, or donations at the following address: XX XX Bryan Ford XX Snail: 1790 East 1400 North XX Logan, UT 84321 XX Email: FATQW@USU.BITNET XX SHAR_EOF if test 3608 -ne "`wc -c MakeARC.doc`" then echo shar: error transmitting MakeARC.doc '(should have been 3608 characters)' fi echo shar: extracting MakeARC.uu sed 's/^XX//' << \SHAR_EOF > MakeARC.uu XX XXbegin 644 MakeARC XXM```#\P`````````$``````````,````"```!D@```!H```/8```#Z0````).# XXM^0```````````^P````!`````P````(````````#\@```^H```&2`"$``0``% XXM`````````````/_______________P``````````````````````````````T XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM````````````````````````````````````````````````````````````` XXM``````````````````````!214%$+DU%``I787)N:6YG.B!#86XG="!W<FETI XXM92!214%$+DU%(&9I;&4N+BX`"51H:7,@87)C:&EV92!W87,@<')O9'5C960@/ XXM8GD@36%K94%20RP@8GD@0G)Y86X@1F]R9"X*``E4;R!U<V4@:70L(%5N05)#0 XXM('1H92!C;VYT96YT<R!O9B!T:&ES(&%R8VAI=F4@;VYT;R!A"@`)9&ER96-TM XXM;W)Y(&]F('EO=7(@8VAO;W-I;F<L($-$('1O('1H870@9&ER96-T;W)Y+"!A! XXM;F0*``ET>7!E.@H*"45814-55$4@15A%0U5412Y-10H*``E4:&4@;W)I9VENJ XXM86P@9FEL92!S=')U8W1U<F4@=VEL;"!B92!A=71O;6%T:6-A;&QY"@`)<F5B" XXM=6EL="P@86YD('1H:7,@4D5!1"Y-12!F:6QE(&%N9"!T:&4@15A%0U5412Y-S XXM12!F:6QE"@`)=VEL;"!B92!D96QE=&5D+@H`36%K941I<B`B`"(*`$5814-5K XXM5$4N344`6$9I;&4N``I787)N:6YG.B!#86YN;W0@9&5L971E(&1I<F5C=&]R+ XXM>2`E<RXN+@!296YA;64@`"!A<R`B``I787)N:6YG.B!#86XG="!R96YA;64@( XXM9FEL92`E<R!T;R`E<RXN+@`_`"UN``D)"0D@("!-86ME05)#"@`)"0E#;W!Y/ XXM<FEG:'0@J2`Q.3@X(&)Y($)R>6%N($9O<F0*``H)5&AI<R!P<F]G<F%M(&ESL XXM(&)E:6YG(&1I<W1R:6)U=&5D(&%S(%-H87)E=V%R92X@($EF('EO=2!U<V4@% XXM:70*``EA;F0@;&EK92!I="P@82!S;6%L;"!C;VYT<FEB=71I;VX@=V]U;&0@V XXM8F4@9W)E871L>2!A<'!R96-I871E9"X*``E);B!A;GD@8V%S92P@>6]U(&%RY XXM92!E;F-O=7)A9V5D('1O(&-O<'D@86YD('-H87)E('1H:7,@<')O9W)A;2X*N XXM``E396YD(&%L;"!C;VUM96YT<RP@:6YQ=6ER:65S+"!A;F0@9&]N871I;VYS% XXM('1O('1H92!A9&1R97-S(&)E;&]W+@H`"@D)"0E"<GEA;B!&;W)D"@`)"54N/ XXM4RX@4VYA:6PZ"3$W.3`@16%S="`Q-#`P($YO<G1H"@`)"0D)3&]G86XL(%54] XXM(#@T,S(Q"@`)"4)I=&YE=#H)"49!5%%70%5350H`"@E5<V%G93H@36%K94%2M XXM0R`\=F]L=6UE(&]R(&1I<F5C=&]R>3X@6RUN70H`36%K94%20R`M($UA:V4@' XXM1FEL97,@05)#+6%B;&4*`$-O<'ER:6=H=""I(#$Y.#@@8GD@0G)Y86X@1F]R. XXM9`H`"DYO($UE;6]R>0H`"D-A;B=T(&9I;F0@)6QS"@`*0V%N)W0@=W)I=&4@@ XXM=&AE($5814-55$4N344@9FEL90H`5V%I="XN+@!%8VAO(")%>'1R86-T:6YGW XXM+BXN(@H`1&5L971E(%)%040N344*`$5C:&\@(D1O;F4N(@I2=6X@/DY)3#H@` XXM1&5L971E($5814-55$4N344*`$1O;F4N"@`````#\@```^L````:```#\@``` XXM`^D```/8(\\````<(\`````D(\@````H+'D````$(\X````$D\E.KO[:*$!*O XXMK`"L9P``]F$``8R1R"`L`*SEB"`P"!#EB$CG`#!%^0```*Q'^0```"P@0'``[ XXM$!A",`@`)L@@.0```"0@>0```"A#\`@`#"$`(%+(__I"*0`!$AAG7`P!`"!G6 XXM]@P!``EG\";*#`$`(F<4%,$2&&="#`$`(&<$%,%@\D(:8-02&&<P#`$`(F?R] XXM#`$`*F8@$A@,`0!.9P8,`0!N9@1R"F`.#`$`16<&#`$`968"<AL4P6#,0A)"[ XXMDR`\````*)"+1H#DB$S?#`!(>0```"PO`$ZY```*K"/`````$$ZY```*O"/`7 XXM````%"/`````&$ZY```')G``+GD````<3G5A``"880``@B/`````("\`0J<D4 XXM0"`J`"1G$"QY````""!`(B@``$ZN_X).N0``!R9P`&`$("\`!"YY````'"\`& XXM+'D````$(#D````(9P8B0$ZN_F)*N0```"!G#DZN_WPB>0```"!.KOZ&(!]., XXM=4CG`08N/``#@`<L>``$3J[_E$S?8(!P9&"P0>P`7$ZN_H!![`!<3J[^C$YU: XXM0_H`$G``3J[]V"/`````"&?"3G5D;W,N;&EB<F%R>0!.5@``2KD```!>9PXOY XXM.0```%Y.N0``"GQ8CTJY````5F<.+SD```!63KD```MD6(]*N0```%IG#B\YN XXM````6DZY```+&%B/2KD`````9Q0O/````00O.0````!.N0``"Y!0CS`N``I(R XXMP"\`3KD```%66(].7DYU3E;__"\\```#[DAY```!K$ZY```*8%"/+4#__$J`. XXM9AA(>0```;1.N0``"D!8CT)Y````9DY>3G5(>0```=HO+O_\3KD```H<4(]($ XXM>0```A$O+O_\3KD```H<4(](>0```D@O+O_\3KD```H<4(](>0```H`O+O_\Z XXM3KD```H<4(](>0```IXO+O_\3KD```H<4(](>0```M(O+O_\3KD```H<4(](2 XXM>0```PLO+O_\3KD```H<4(\O+O_\3KD```I\6(].7DYU3E;^Y!`Y````9$H`C XXM9A(0.0````1*`&<($_P``0```&1P_B\`2'D````$3KD```K\4(\M0/[L2H!F' XXM!$Y>3G4@>0````!#[O[\,#P!`Q+84<C__"\Y`````"\N_NQ.N0``"RQ0CTJ`[ XXM9B1![O[\(GD`````,#P!`Q+84<C__"\N_NQ.N0``"QA8CTY>3G5(>0````1.6 XXMN0``#PA8CQU`_OL@>0````!*J`!X:P`!IDH`9P``I'`)+P!(>0```QXO.0``I XXM`%Y.N0``"I!/[P`,#(`````);`IP"B\`80#]ZEB/2'D````$3KD```\(6(\OE XXM`$AY````!"\Y````7DZY```*D$_O``Q(>0````0O0``$3KD```\(6(\B+P``$ XXMLH!L"G`*+P!A`/V@6(]P`B\`2'D```,H+SD```!>3KD```J03^\`#`R`````` XXM`FP*<`HO`&$`_718CR\Y`````"\N_NQ.N0``"TA0CTJ`9P``CDHN_OMF."!YI XXM`````%"(2'D```,K+PA.N0``#F!0CTJ`9\8@>0````!0B$AY```#-B\(3KD`R XXM``NH4(]=@&>J2B[^^V<2<``0+O[[($#1_`````00O``O<``0+O[[2H!6P40!* XXM2(%(P="!($#1_`````0B>0````!0B2\)+PA.N0``#J!0CV$`_@Y@`/]>+R[^0 XXM[$ZY```+&%B/2B[^^V<``=QP`!`N_OL@0-'\````!$(02'D````$3KD```K,^ XXM6(]*@&8``;A(>0````1(>0```SU.N0``"D!0CQ/\``(```!D8``!F"\N_NQ.) XXMN0``"QA8CTAY```#-DAN_O%.N0``#J!0CS`Y````8E)`,\````!B<@`R.0``% XXM`&)P!2\`+P%(;O[W3KD```V\3^\`#$AN_O%(>0````1.N0``"N!0CTJ`9P`!G XXM%G`'+P!(>0```V4O.0```%Y.N0``"I!/[P`,#(`````';`IP"B\`80#[[%B/W XXM2&[^\4ZY```/"%B/+P!(;O[Q+SD```!>3KD```J03^\`#$AN_O$O0``$3KD`. XXM``\(6(\B+P``LH!L"G`*+P!A`/NH6(]P!2\`2'D```-M+SD```!>3KD```J0' XXM3^\`#`R`````!6P*<`HO`&$`^WQ8CTAY````!$ZY```/"%B/+P!(>0````0OF XXM.0```%Y.N0``"I!/[P`,2'D````$+T``!$ZY```/"%B/(B\``+*`;`IP"B\`A XXM80#[,EB/<`(O`$AY```#*"\Y````7DZY```*D$_O``P,@`````)L+G`*+P!AE XXM`/L&6(]@(DAN_O%(>0````1(>0```W-.N0``"D!/[P`,$_P``@```&1P`!`N) XXM_OL@0-'\````!$(00>[^_")Y`````#`\`0,2V%'(__Q.7DYU3E8``#`N``H,U XXM0``";48,0``#;D!(>0```YL@;@`,+R@`!$ZY```.8%"/2H!G)DAY```#G2!N@ XXM``PO*``(3KD```Y@4(]*@&<``*X,;@`#``IF``"D2'D```.@3KD```I`6(](3 XXM>0```[!.N0``"D!8CTAY```#TTZY```*0%B/2'D```053KD```I`6(](>0``& XXM!%=.N0``"D!8CTAY```$F4ZY```*0%B/2'D```3=3KD```I`6(](>0``!.Y.$ XXMN0``"D!8CTAY```%$DZY```*0%B/2'D```4G3KD```I`6(](>0``!3U.N0``I XXM"D!8CT*G80#YQ%B/2'D```5J3KD```I`6(](>0``!8E.N0``"D!8CPQN``(`* XXM"F8(,_P``0```&9P`2\`+SP```$$3KD```MX4(\CP`````!*@&882'D```6IA XXM3KD```I`6(]P"B\`80#Y9%B/</XO`"!N``PO*``$3KD```K\4(\CP````%I*+ XXM@&8@(&X`#"\H``1(>0``!;5.N0``"D!0CW`*+P!A`/DF6(\O.0```%I.N0``_ XXM"V18CR/`````5B\\```#[DAY```#*TZY```*8%"/(\````!>2H!F&$AY```%Y XXMQDZY```*0%B/<`HO`&$`^-Q8CTAY```%Z$ZY```*0%B/<!4O`$AY```%\"\Y[ XXM````7DZY```*D$_O``P,@````!5L"G`*+P!A`/BB6(]".0```&1A`/G2$#D`_ XXM``!D4P!G[#`Y````9E-`9@1A`/CT,#D```!F4T!F&G`/+P!(>0``!@8O.0``H XXM`%Y.N0``"I!/[P`,<"DO`$AY```&%B\Y````7DZY```*D$_O``P,@````"EL` XXM"G`*+P!A`/@P6(](>0``!D!.N0``"D!8CT*G80#X&EB/3EY.=0``2.<`.BAO4 XXM`!0@;P`8(F\`'$7Z`#I/[_]T)D\L>0````1.KOWV</]*&U?(__Q&@&<2+P!(# XXM;P`$2%1.N0``"I!/[P`,3^\`C$S?7`!.=1;`3G5(YS``)B\`#"0O`!!(;P`45 XXM+P(O`TZY```)S$_O``Q,WP`,3G4O`B0O``A(;P`,+P(O.0```!1.N0``"<Q/J XXM[P`,)!].=4CG(`(L>0````A,[P`&``Q.KO_B3-]`!$YU```O#BQY````""(O6 XXM``A.KO_<+%].=4CG,`(L>0````A,[P`.`!!.KO_03-]`#$YU```O#BQY````[ XXM"$ZN_\HL7TYU+PXL>0````A.KO_$+%].=2\.+'D````((B\`"$ZN_[@L7TYU6 XXM2.<@`BQY````"$SO``8`#$ZN_[),WT`$3G4``$CG(`(L>0````A,[P`&``Q.# XXMKO^L3-]`!$YU```O#BQY````""(O``A.KO^F+%].=4CG(`(L>0````A,[P`&\ XXM``Q.KO^:3-]`!$YU``!(YR`"+'D````(3.\`!@`,3J[_E$S?0`1.=0``+PXL( XXM>0````@B+P`(3J[_@BQ?3G4O#BQY````!$SO``,`"$ZN_SHL7TYU```O#BQYV XXM````!")O``@@+P`,3J[_+BQ?3G5.5O_D<``M0/_\+4#_]"`N__0@;@`,T<!R, XXM`!(0+4'_["U!__!*@6<``>)2@"!N``S1P'``$!`M0/_H#($````_9@1"KO_L? XXM#*X```!<__!F+DJN_^AG*"`N__12@"!N``S1P'(`$A`M0/_T4H`@;@`,T<!PF XXM`!`0+4#_Z"U!_^P@+O_P#(`````K9P@,@````"IF#"UN__#_Z$*N_^Q@&"`NJ XXM_^@,@````"MG"`R`````*F8$4J[_]`RN````*__H9CX@;@`(T>[__!`02@!FP XXM!G``3EY.=4JN_^QF!E*N__Q@'B!N``C1[O_\4J[__'``$!`B+O_LLH!G!G``2 XXM3EY.=2`N_^@,@````"MG"@R`````*F8``(0M;O_\__A*KO_L9A8@+O_\(&X`O XXM"-'`$A!*`6<@4J[__&#J("[__"!N``C1P'(`$A"RKO_L9@92KO_\8.8@+O_\7 XXML*[_^&TV(&X`"-'`("[_]%*`(FX`#-/`+PDO"&$`_HY0CRU`_^1*@&<,(B[_X XXM_-*`(`%.7DYU4Z[__&#`<`!.7DYU2J[_[&<:(&X`"-'N__QP`!`0(B[_[+*`* XXM9P9P`$Y>3G5*KO_L9D(@;@`(T>[__!`02@!F-"`N__0@;@`,T<`2$`P!`#]FK XXM!E*N__1@Z"!N``S1[O_T$!!*`&8(("[__$Y>3G5P`$Y>3G52KO_\4J[_]&``* XXM_@8@+O_\3EY.=0``3E;_["!N``A"$`RN`````@`0;`9P`$Y>3G5P"RU`__Q3& XXMKO_\("X`#'(*3KD```\L!H$````P("[__!V!".T@+@`,<@I.N0``#RPM0``,E XXM2JX`#&;,<`LB+O_\D($D+@`0M(!N"%*`D(+1KO_\0J[_^"`N__P,@`````MLJ XXM%B!N``C1[O_X4J[__!"V".U2KO_X8-X@+O_X(&X`"-'`0A!.7DYU``!.5@``> XXM(&X`"!`0(&X`#!(0L`%F%$H`9@9P`$Y>3G52K@`(4JX`#&#<<``@;@`($!!R: XXM`"!N``P2$)"!3EY.=0``3E;__"UN``C__"!N__Q2KO_\(FX`#!`1$(!2K@`,6 XXM2@!FZ"`N``A.7DYU3E;__"UN``C__$JN`!!O("!N``P0$")N__P2@%*N``Q*> XXM`&<,4J[__$YQ4ZX`$&#:(&[__$(0("X`"$Y>3G5.5O_\0J[__"!N``C1[O_\R XXM$!!*`&<&4J[__&#L("[__$Y>3G4O`B\#2H%G(DJ`9QQ"@G8?XX#CDK2!90B4! XXM@="\`````5'+_^XB`F`$0H%"@"8?)!].=0`````#[````$\````!```+E```- XXM"WP```MH```+3@``"S(```L<```+`@``"N8```K0```*P```"K````J6```*\ XXM@```"F8```I.```)L@``"8H```EP```)&```"08```CN```(U@``"*0```AFM XXM```(+```"!X```@(```'^@``!^P```?>```'T```!\(```>T```'I@``!Y@`J XXM``>*```'?```!U8```<\```&Z```!K0```8^```%S@``!78```50```$L```W XXM!)0```1&```#T````O@```+F```"U````L(```*P```"G@```HP```)T```") XXM7@```<@```&$```!>````6H```%<```!/@```2P```$<```!#@```0@```#\* XXM````[@```-X```!D````7@```$P```!&````&@````X````(`````@```#\`1 XXM```"```)D```"78```EB```)5```"4H```E````)'@``".0```C*```(O```G XXM")(```A<```(1```!Q0```<(```&^@``!N(```:Z```&C```!GP```9V```&R XXM9@``!D0```8(```%U```!;8```68```%D```!8@```5@```%2@``!38```4NS XXM```$]@``!/````32```$J```!(P```1N```$3```!!X```0.```$"````_@`] XXM``/6```#N````Z8```.&```#;````U@```,^```#-````R@```,>```"@@``8 XXM`C(```(D```"%@```@X```(````!^````>H```'B````40````,```X"```-\ XXMZ```"E0```HR```*!@``"%0```6\```%J```!3P```6````%`@``!+@```=D0 XXM```'2@``!)P```1X```)E@``"7P```DD```&P```!H(```9*```&#@``!=H`/ XXM``12```$%````]P```:6```&;```!B````7Z```$*````_X```.L```#=@``5 XXM"(H```-$```#`@```O````+>```"S````KH```*H```"E@``";@```D,```(: XXM]```"*H```AL```(,@``""0```@.```(````!_(```?D```'U@``!\@```>ZO XXM```'K```!YX```>0```'@@``!NX```56```">@``"-P```)D```"2````C@`1 XXM``5N```%%@```YH```(<```(P@```@8```,.```!\````/8```$"```!3@``E XXM`10````````#\`````)?1G)E94UE;0``"Y`````#7T%L;&]C365M```````+< XXM>`````-?0W5R<F5N=$1I<@````MD`````E]%>$YE>'0````+2`````)?17AA: XXM;6EN90``"RP````"7U5N3&]C:P````L8`````E],;V-K```````*_`````)?! XXM4F5N86UE````"N`````#7T1E;&5T949I;&4````*S`````)?3W5T<'5T````_ XXM"KP````"7TEN<'5T``````JL`````E]7<FET90`````*D`````)?0VQO<V4`* XXM````"GP````"7T]P96X```````I@`````E]P<FEN=&8````*0`````$N3#0`0 XXM```*0@````$N3#,````*0`````$N3#(````*1@````$N3#$````*7`````$N" XXM3#0````*(`````$N3#,````*'`````$N3#(````**`````$N3#$````*.@``- XXM``)?9G!R:6YT9@``"AP````"<V-?<'5T``````H8`````W-T=69F0VAA<@``; XXM````"A@````"<'-?96UP='D```H.`````E]?9&]P<FYT```)S`````)P<U]S0 XXD:7IE````"?(````#<'-?8V]M;6]N```````)_`````````/R+ XX`` XXend XXsize 7056 SHAR_EOF if test 9915 -ne "`wc -c MakeARC.uu`" then echo shar: error transmitting MakeARC.uu '(should have been 9915 characters)' fi # End of shell archive exit 0