Created
December 23, 2010 17:19
-
-
Save tuxdna/753263 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright (C) and Author: | |
# Saleem Ansari <[email protected]> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. See | |
# http://www.gnu.org/copyleft/gpl.html for the full text of the | |
# license. | |
# | |
# This is a very basic script to wikify the status of Fedora ARM | |
# packages already built and what needs to be built. | |
# | |
# How to use: | |
# 1. Fetch the list of RPM file names ( for Fedora 12 ): | |
# $ wget -c -O rpmlist-f12-armv5tel.txt http://fpaste.org/Lo3B/raw/ | |
# 2. In a sub folder named packages/ ( see $packages_dir below ) copy | |
# all the RPM packages already built for ARM Fedora 13 | |
# 3. Now type: | |
# $ sh wikify.sh | |
echo \{\| | |
echo \! Package Name \!\! Current Status \!\! RPM Name | |
base_dir=$(pwd) | |
packages_dir=$(pwd)/packages/ | |
files_list=rpmlist-f12-armv5tel.txt | |
for f in $(cat $files_list) | |
do | |
echo \|- | |
pkg_name=${f%.*} | |
is_built=0 | |
# echo $f | |
# echo $pkg_name | |
# echo $packages_dir/${pkg_name}*.fc13.armv5tel.rpm | |
ls -l $packages_dir/${pkg_name}*.fc13.armv5tel.rpm > /dev/null 2>&1 | |
if [ "$?" = "0" ] | |
then | |
is_built=1 | |
else | |
is_built=0 | |
fi | |
cd $packages_dir | |
echo -n \| | |
echo -n $pkg_name \|\| | |
if [ $is_built == "1" ] | |
then | |
echo -n packaged \|\| ${pkg_name}*.fc13.armv5tel.rpm | |
else | |
echo -n needs packaging \|\| - | |
fi | |
echo | |
cd $base_dir > /dev/null | |
done | |
echo \|\} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment