This commit is contained in:
Mario Fetka 2017-05-23 15:56:58 +02:00
parent 3a369b4dc8
commit b88350048b
2 changed files with 7 additions and 3 deletions

View File

@ -41,18 +41,20 @@ while IFS=! read type app version outputfile url md5 realver
do do
mkdir -p $WORK_DIR/${type}/${realver} mkdir -p $WORK_DIR/${type}/${realver}
pushd $WORK_DIR/${type}/${realver} pushd $WORK_DIR/${type}/${realver}
tar -zxf $DIR/../$outputfile
unzip $DIR/../$outputfile unzip $DIR/../$outputfile
rpm2cpio $DIR/../$outputfile | cpio -idmv
popd popd
mkdir -p $WORK_DIR/${app}-${version}/${type}/${realver} mkdir -p $WORK_DIR/${app}-${version}/${type}/${realver}
pushd $WORK_DIR/${app}-${version}/${type}/${realver} pushd $WORK_DIR/${app}-${version}/${type}/${realver}
case "${type}" in case "${type}" in
"amd64" ) "amd64" )
mv $WORK_DIR/${type}/${realver}/*/64bin/magician . mv $WORK_DIR/${type}/${realver}/*/64bin/magician .
mv $WORK_DIR/${type}/${realver}/magician .
chmod +x magician chmod +x magician
;; ;;
"i386" ) "i386" )
mv $WORK_DIR/${type}/${realver}/*/32bin/magician . mv $WORK_DIR/${type}/${realver}/*/32bin/magician .
mv $WORK_DIR/${type}/${realver}/magician .
chmod +x magician chmod +x magician
;; ;;
*) *)

View File

@ -1,2 +1,4 @@
amd64!magician!1.0.0!samsung_magician_dc-v1.0_rtm_p2.tar.gz!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/samsung_magician_dc-v1.0_rtm_p2.tar.gz!b7e88ecac15adddaa5bfae3f679ee2ca!1.00 amd64!magician!2.0.0!Samsung_Magician_DC_Linux_64bit.zip!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/Samsung_Magician_DC_Linux_64bit.zip!07132c95d8bf88fad498fab4b7864b2e!2.00
i386!magician!1.0.0!samsung_magician_dc-v1.0_rtm_p2.tar.gz!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/samsung_magician_dc-v1.0_rtm_p2.tar.gz!b7e88ecac15adddaa5bfae3f679ee2ca!1.00 i386!magician!2.0.0!Samsung_Magician_DC_Linux_32bit.zip!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/Samsung_Magician_DC_Linux_32bit.zip!1357224cd841ef97b57c1a489e4f37b4!2.00
amd64!magician!2.0.0!samsung_magician_dc-v1.0_rtm_p2.tar.gz!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/samsung_magician_dc-v1.0_rtm_p2.tar.gz!b7e88ecac15adddaa5bfae3f679ee2ca!1.00
i386!magician!2.0.0!samsung_magician_dc-v1.0_rtm_p2.tar.gz!http://www.samsung.com/semiconductor/minisite/ssd/downloads/software/samsung_magician_dc-v1.0_rtm_p2.tar.gz!b7e88ecac15adddaa5bfae3f679ee2ca!1.00