[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

release.sh for mips



Hi,
attached is a patch against release.sh so we can make a proper bf upload
for mips. Can somebody(Henning?) make a upload for mips please.  I'm on
my way to Austria and don't want to upload/commit anything and then be
out of touch with ml for over a week.
Regards,
 -- Guido
Index: release.sh
===================================================================
RCS file: /cvs/debian-boot/boot-floppies/release.sh,v
retrieving revision 1.112
diff -u -u -r1.112 release.sh
--- release.sh	2001/08/06 01:11:41	1.112
+++ release.sh	2001/08/07 22:21:21
@@ -1063,8 +1063,42 @@
 
 do_arch_mips()
 { 
-  echo "Nothing here yet!"
-  exit 1
+# we use this as generic rootimge for now
+  cp -a rootr4k-ip22.tar.gz $release/root.tar.gz
+
+# overkill but keeps things simple for new subarches
+  for subarch in r4k-ip22; do
+    # Per subarch images
+    info "setting up subarchitecture '$subarch'"
+    mkdir -p $release/${subarch}/
+    mv $release/images-2.88/rescue${subarch}.bin $release/${subarch}/rescue.bin
+    mv $release/drivers${subarch}.tgz $release/${subarch}/drivers.tgz
+    gunzip -c config${subarch} > $release/${subarch}/kernel-config
+    cp -a  linux${subarch} $release/${subarch}/linux
+    rm $release/root${subarch}.bin # don't need this for now
+  done
+
+  # don't need these for now
+  rm -rf $release/images-{1.44,2.88}
+
+  # make md5sum before tarring up all the contents
+  info "making md5sum"
+  (cd $release && md5sum `find . -type f | 			\
+	grep -v '\(md5sum.txt\|/doc/\|bf-\)'` > md5sum.txt)
+
+  # make tarballs for subarches, etc.
+  for dir in r4k-ip22 ; do
+    (cd $release && tar cz --remove-files -f bf-${dir}${suffix}.tar.gz $dir)
+    echo "tar -xzf bf-${dir}${suffix}.tar.gz ; rm -f bf-${dir}${suffix}.tar.gz" >> \
+	$release/$bfinstall
+    rm -rf $release/${dir}
+  done
+
+  (cd $release && tar cz --remove-files -f bf-common${suffix}.tar.gz \
+	*.txt root.tar.gz)
+  echo "tar -xzf bf-common${suffix}.tar.gz ; rm -f bf-common${suffix}.tar.gz" >> \
+	$release/$bfinstall
+  info "done with mips specific part."
 }
 	
 do_arch_mipsel()

Reply to: