Skip to content

Commit df8d37d

Browse files
author
bagheadspidey
committed
fix file extensions, use TX_START / TX_END markers
1 parent 51184f7 commit df8d37d

File tree

7 files changed

+175
-368
lines changed

7 files changed

+175
-368
lines changed

build/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ cd ..
1111
rm filechars
1212

1313
export BUILD_STATIC=1
14+
export BUILD_OBJECT=1
1415

1516
cd src
1617
../build/linux-build.sh
@@ -30,7 +31,7 @@ cp magic/* $l/magic; cp magic/* $w/magic
3031
cp *.txt $l; cp *.txt $w
3132
mv src/unwad.static $l/unwad
3233
mv src/unwad.exe $w; cp dll/*.dll $w
33-
mv src/unwad build
34+
mv src/unwad .
3435

3536
cd ./release/l/
3637
rm ../linux/unwad.tar.gz

build/linux-build.sh

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,33 @@ cd ../qmus2mid
1212
qmus2mid.cpp
1313
cd ../..
1414

15-
export includes="-I../include/pngpp -I../include -I.."
1615
export mz_dir=../include/minizip
1716
export qm_dir=../include/qmus2mid
18-
export bs="g++ -Wall $includes unwad.cpp \
19-
$qm_dir/qmus2mid.o \
20-
$mz_dir/minizip.o $mz_dir/ioapi.o $mz_dir/zip.o $mz_dir/unzip.o"
17+
18+
export includes="-I../include/pngpp -I../include -I.."
2119
export linked="-lmagic -lpng -lz"
2220
export static="/usr/lib/libmagic.a /usr/lib/libpng.a /usr/lib/libz.a"
21+
export stuff="$qm_dir/qmus2mid.o $mz_dir/minizip.o $mz_dir/ioapi.o $mz_dir/zip.o $mz_dir/unzip.o"
2322

2423
cd src
24+
#echo building unwad.o
25+
#g++ -Wall $includes unwad.cpp -c
2526
echo building unwad
26-
$bs $linked -o unwad
27+
#g++ -Wall $includes unwad.cpp -c
28+
g++ -Wall unwad.cpp $includes $linked $stuff -o unwad
2729
strip unwad
2830
if echo "$BUILD_STATIC" | grep -q "1"; then
29-
echo building unwad.static
30-
$bs $static -o unwad.static
31-
strip unwad.static
31+
#g++ -Wall $includes unwad.cpp -c
32+
g++ -Wall unwad.cpp $includes $static $stuff -o unwad.static
33+
strip unwad.static
34+
fi
35+
if echo "$BUILD_OBJECT" | grep -q "1"; then
36+
g++ -Wall -DUNWAD_OBJECT=1 $includes unwad.cpp -c
37+
#g++ -Wall unwad.cpp $includes $static $stuff -o unwad.static
38+
strip unwad.static
3239
fi
3340
cd ..
3441

35-
rm include/minizip/*.o
36-
rm include/qmus2mid/*.o
42+
mv include/minizip/*.o ../obj
43+
mv include/qmus2mid/*.o ../obj
44+
mv src/*.o ../obj

include/minizip/miniunz.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ int do_extract_onefile(uf,filename,opt_extract_without_path,opt_overwrite,passwo
461461
}
462462

463463

464-
int main(argc,argv)
464+
int muz_main(argc,argv)
465465
int argc;
466466
char *argv[];
467467
{

magic/magic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8614,7 +8614,7 @@
86148614
# URL: http://www.mathsoft.com/
86158615
# From: Josh Triplett <[email protected]>
86168616

8617-
0 string .MCAD\ Mathcad document
8617+
#0 string .MCAD\ Mathcad document
86188618

86198619
#------------------------------------------------------------------------------
86208620
# mathematica: file(1) magic for mathematica files

release/linux/unwad.tar.gz

11.7 KB
Binary file not shown.

release/windows/unwad.zip

5.18 KB
Binary file not shown.

0 commit comments

Comments
 (0)