better clean

This commit is contained in:
Marc BARBIER
2021-07-06 16:33:09 +02:00
parent 9480686d71
commit 2a6b802bb0
3 changed files with 35 additions and 2 deletions
+9
View File
@@ -1,3 +1,12 @@
ALL:
scripts/clean.sh;
scripts/build.sh;
scripts/package.sh;
FAT:
scripts/clean.sh;
scripts/build.sh;
scripts/fatPackage.sh;
CLEAN:
scripts/clean.sh;
+8
View File
@@ -1,3 +1,11 @@
#!/bin/sh
ls objs/* > /dev/null 2> /dev/null
HASOBJS=$?
if [ $HASOBJS -eq 0 ]; then
rm objs/* -r
fi
if test -f "mcDownloader.jar"; then
rm mcDownloader.jar
fi
+16
View File
@@ -0,0 +1,16 @@
if test -f "mcDownloader.jar"; then
rm mcDownloader.jar
fi
pwd
LIBS=$( cd objs/ && ls ../libs/*.jar)
echo $LIBS
cd objs
for lib in ${LIBS}; do
jar -xf $lib
done
rm META-INF -r
jar cfm ../mcDownloader.jar ../MANIFEST.MF *